Worklight 6.0 development server [duplicate] - ibm-mobilefirst

When I am trying to build and deploy my application by right-clicking on application name -> Run As -> Build All and Deploy... I am getting a failure notification in the console:
Failed to deploy the application to Worklight server: please verify
that the Worklight server is started and reachable.
I have first installed Eclipse Juno and then installed plug-in of Worklight V6 in it. Is it required to install Worklight server by some other means?
This is the entire log:
[2013-07-21 09:55:04] FWLPL0001W: Server not started yet. Build may
fail at first trial. [2013-07-21 09:55:13] Starting build
process: application 'HelloWorklightApp', all environments [2013-07-21
09:55:14] FWLPL0010W: "localhost" was detected from the target server
configuration. Using the primary IP address of the host machine,
101.218.109.86, to build the Worklight application(s). Consider using a fully qualified hostname (avoid using "localhost") or a valid IP
address instead. The value can be modified by opening the
configuration editor of Worklight Development Server from the
"Servers" view. [2013-07-21 09:55:16] Application
'HelloWorklightApp' with all environments build finished. [2013-07-21
09:55:16] Deploying application 'HelloWorklightApp' with
all environments to Worklight Server... [2013-07-21 09:55:38]
Failed to deploy the application to Worklight server: please verify
that the Worklight server is started and reachable.
Here is the entire log that i got when started theserver-
[AUDIT ] CWWKE0001I: The server worklight has been launched. [ERROR
] CWWKO0030E: An exception was generated when starting chain
CHAIN-defaultHttpEndpoint because of exception
com.ibm.wsspi.channelfw.exception.ChannelException: TCP Channel:
defaultHttpEndpoint- Problem occurred while starting channel: Unable
to establish loopback connection [AUDIT ] CWWKZ0058I: Monitoring
dropins for applications. [AUDIT ] CWWKF0011I: The server worklight
is ready to run a smarter planet. [AUDIT ] CWWKZ0022W: Application
_MobileBrowserSimulator has not started in 30.002 seconds. [AUDIT ] CWWKZ0022W: Application HelloWorklightProject has not started in
30.001 seconds. [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0018I: The server configuration was not
updated. No functional changes were detected. [AUDIT ] CWWKG0016I:
Starting server configuration update. [AUDIT ] CWWKG0017I: The
server configuration was successfully updated in 0.043 seconds. [AUDIT
] CWWKZ0022W: Application TestWorklightProject has not started in
30.002 seconds.
Log after changing the prt and IP address-
Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45-b06 (en_IN)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[ERROR ] CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed. The socket bind did not succeed for host 10.0.0.1 and port 8080. The port might already be in use.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[err] 255 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[err] 2256 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 2850 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
[err] 1 WorklightReportsPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[err] 1 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[err] 214 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 216 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
[err] 0 WorklightReportsPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[AUDIT ] CWWKZ0022W: Application _MobileBrowserSimulator has not started in 33.066 seconds.
[AUDIT ] CWWKZ0022W: Application TestWorklightProject has not started in 31.548 seconds.
[AUDIT ] CWWKZ0022W: Application HelloWorklightProject has not started in 30.002 seconds.

Several suggestions:
This same issue is also reported here. Follow the instructions given there.
Make sure the default port number, 10080, is not taken
After creating a new Worklight project and application
Go to the Servers view in Eclipse and start the server (don't build the app); see if it loads properly
You can look at the Worklight Development Server console view for the logs
Full size image
See if changing the the Host value helps. You can also change here the port in case 10080 is taken and you cannot release it for what ever reason.
Full size image

This can also be caused by multiple networks running on your workstation. I find having VMWare installed causes the build side of Worklight to get confused. It starts the server on your host LAN port, but then looks up "localhost" when trying to deploy an application, on my machine this gets the IP address of the VMWare LAN adaptor.
Double click on the server and change the "Host name:" field to the IP address of your local LAN.
I know I'm having problems if I see the following when trying to build and deploy:
FWLPL0010W: "localhost" was detected from the target server configuration. Using the primary IP address of the host machine, 192.168.10.1, to build the Worklight application(s). Consider using a fully qualified hostname (avoid using "localhost") or a valid IP address instead. The value can be modified by opening the configuration editor of Worklight Development Server from the "Servers" view.

I don't know how many people are facing this type of issue and their Worklight server is not working properly but here are few steps that I followed to solve my issue.
1) Deleted my whole Eclipse folder.
2) Extracted again Eclipse folder from the Zipped file which I downloaded from Eclipse site.
3) Installed Worklight v6 Plugin using "Install new software" option in "Help" tab in Eclipse.
More detailed info to install using this process is available at this link-
http://www.ibm.com/developerworks/mobile/worklight/download/install.html
My suggestion is not to use Eclipse Marketplace to install the plugin as I got trouble
in my two systems while using it.
4) Restart Eclipse and check.

In my case it was a proxy problem. Check if you have a proxy configured in IE Tools->Connections->LAN Settings.
I had to disable it in order to make deployment work.

I to faced the same problem, but in my case the problem was i used Jre 1.8. So by checking all the possible was finally i changed the jre7 path by the fallowing way.
Actually it IBM Worklight needs JRE and JDK 1.7(7)
In Worklight Studio, open the Servers view.
Double-click Worklight Development Server to open the Overview page.
In Overview page click on the Runtime Environment
Runtime Environment window in JRE Pane click on Configure JREs...,
It shows Preferences window, in that click on add button.
it shows another window called Add JRE in that select Standard VM and click on next, In JRE Definition click on Dictionary of JRE Home:, Now select the 1.7 JRE path then click on next then click finish
In Preferences window check jre7 and click on OK, finally click on Finish and restart the Eclipse
Now run your application on Worklight development server.

Related

An exception apears while deploying KIE Execution Server

I want to delpoy the Execution Server in follwing environment:
Wildfly17.0.0.Final
JVM memory, min:64m, max:1024m
Execution Server WAR package: kie-server-7.22.0.Final-ee7.war
A message shows in deployment page of Wildfly's HAL Management Console:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"kie-server-7.22.0.Final-ee7.war\".PARSE" => "WFLYSRV0153: Failed to process phase PARSE of deployment \"kie-server-7.22.0.Final-ee7.war\"
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found"}}
can someone help? thanks in advance!
It seems that you started WildFly with default standalone profile. However Kie server requires standalone-full profile as it uses JMS queues.
Please try to start WildFly with standalone-full profile. For linux based system you can achieve that using command:
./standalone.sh -c standalone-full.xml

Runtime synchronization failed

After starting one server in a cluster we are getting below error while other node is working fine
Runtime synchronization failed (No constructor has a #ConstructorProperties for this set of items: [action, createdTime, downloadLink, message, multiLanguageMessagesJSON])
Server MobileFirst 7.1
Please advice ?
Such an error may happen because the faulty server may be missing the correct level of an iFix, unlike the rest of the servers in the cluster, or an iFix that was "partially" installed, i.e. it is missing the correct JEE .jar or the admin .war files.

Mule 3.7CE enabling jmx

i'm trying to get JMX monitoring to work on a Mule 3.7 CE server.
I've got a flow with
<management:jmx-server >
<management:connector-server url="service:jmx:rmi:///jndi/rmi://my-server:1099/server" rebind="false" />
</management:jmx-server>
when i deploy the app it get this error
Failed to deploy artifact 'jmx_ce37', see below +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.module.launcher.DeploymentInitException:
RegistrationException: More than one object of type class
org.mule.module.management.agent.AbstractJmxAgent registered but only
one expected. at
org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:197)
~[?:?]
I would assume that there's already some jmx process running; but i didn't enable it, and i don't know how to connect to it. There are no processes listening on the default jmx port (1096) on this machine.
Any suggestions on what to do to use jmx with Mule3.7CE ?
Mule server already provides indeed a JMX server with basic statistics around the server and the applications, please try and use a different port if the default out-of-the-box behaviuor does not work for you.

JBoss 7.1.1 Startup error [JBAS015875] missing startup stats

When we deploy the service on JBoss and start the JBoss, we expect the successful startup message at the end of the service startup. But, in my case, I'm getting below error. I'm using JBoss 7.1.1
ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: %s started (with errors) in %dms - Started %d of %d services (%d services failed or missing dependencies, %d services are passive or on-demand)
Has anyone come across this scenario before? My question is, why startup stats are not replacing place holders ?
Thanks in advance.

IBM Worklight 6.0 - Worklight Server not reachable

When I am trying to build and deploy my application by right-clicking on application name -> Run As -> Build All and Deploy... I am getting a failure notification in the console:
Failed to deploy the application to Worklight server: please verify
that the Worklight server is started and reachable.
I have first installed Eclipse Juno and then installed plug-in of Worklight V6 in it. Is it required to install Worklight server by some other means?
This is the entire log:
[2013-07-21 09:55:04] FWLPL0001W: Server not started yet. Build may
fail at first trial. [2013-07-21 09:55:13] Starting build
process: application 'HelloWorklightApp', all environments [2013-07-21
09:55:14] FWLPL0010W: "localhost" was detected from the target server
configuration. Using the primary IP address of the host machine,
101.218.109.86, to build the Worklight application(s). Consider using a fully qualified hostname (avoid using "localhost") or a valid IP
address instead. The value can be modified by opening the
configuration editor of Worklight Development Server from the
"Servers" view. [2013-07-21 09:55:16] Application
'HelloWorklightApp' with all environments build finished. [2013-07-21
09:55:16] Deploying application 'HelloWorklightApp' with
all environments to Worklight Server... [2013-07-21 09:55:38]
Failed to deploy the application to Worklight server: please verify
that the Worklight server is started and reachable.
Here is the entire log that i got when started theserver-
[AUDIT ] CWWKE0001I: The server worklight has been launched. [ERROR
] CWWKO0030E: An exception was generated when starting chain
CHAIN-defaultHttpEndpoint because of exception
com.ibm.wsspi.channelfw.exception.ChannelException: TCP Channel:
defaultHttpEndpoint- Problem occurred while starting channel: Unable
to establish loopback connection [AUDIT ] CWWKZ0058I: Monitoring
dropins for applications. [AUDIT ] CWWKF0011I: The server worklight
is ready to run a smarter planet. [AUDIT ] CWWKZ0022W: Application
_MobileBrowserSimulator has not started in 30.002 seconds. [AUDIT ] CWWKZ0022W: Application HelloWorklightProject has not started in
30.001 seconds. [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0018I: The server configuration was not
updated. No functional changes were detected. [AUDIT ] CWWKG0016I:
Starting server configuration update. [AUDIT ] CWWKG0017I: The
server configuration was successfully updated in 0.043 seconds. [AUDIT
] CWWKZ0022W: Application TestWorklightProject has not started in
30.002 seconds.
Log after changing the prt and IP address-
Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45-b06 (en_IN)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[ERROR ] CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed. The socket bind did not succeed for host 10.0.0.1 and port 8080. The port might already be in use.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[err] 255 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[err] 2256 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 2850 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
[err] 1 WorklightReportsPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[err] 1 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[err] 214 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 216 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
[err] 0 WorklightReportsPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[AUDIT ] CWWKZ0022W: Application _MobileBrowserSimulator has not started in 33.066 seconds.
[AUDIT ] CWWKZ0022W: Application TestWorklightProject has not started in 31.548 seconds.
[AUDIT ] CWWKZ0022W: Application HelloWorklightProject has not started in 30.002 seconds.
Several suggestions:
This same issue is also reported here. Follow the instructions given there.
Make sure the default port number, 10080, is not taken
After creating a new Worklight project and application
Go to the Servers view in Eclipse and start the server (don't build the app); see if it loads properly
You can look at the Worklight Development Server console view for the logs
Full size image
See if changing the the Host value helps. You can also change here the port in case 10080 is taken and you cannot release it for what ever reason.
Full size image
This can also be caused by multiple networks running on your workstation. I find having VMWare installed causes the build side of Worklight to get confused. It starts the server on your host LAN port, but then looks up "localhost" when trying to deploy an application, on my machine this gets the IP address of the VMWare LAN adaptor.
Double click on the server and change the "Host name:" field to the IP address of your local LAN.
I know I'm having problems if I see the following when trying to build and deploy:
FWLPL0010W: "localhost" was detected from the target server configuration. Using the primary IP address of the host machine, 192.168.10.1, to build the Worklight application(s). Consider using a fully qualified hostname (avoid using "localhost") or a valid IP address instead. The value can be modified by opening the configuration editor of Worklight Development Server from the "Servers" view.
I don't know how many people are facing this type of issue and their Worklight server is not working properly but here are few steps that I followed to solve my issue.
1) Deleted my whole Eclipse folder.
2) Extracted again Eclipse folder from the Zipped file which I downloaded from Eclipse site.
3) Installed Worklight v6 Plugin using "Install new software" option in "Help" tab in Eclipse.
More detailed info to install using this process is available at this link-
http://www.ibm.com/developerworks/mobile/worklight/download/install.html
My suggestion is not to use Eclipse Marketplace to install the plugin as I got trouble
in my two systems while using it.
4) Restart Eclipse and check.
In my case it was a proxy problem. Check if you have a proxy configured in IE Tools->Connections->LAN Settings.
I had to disable it in order to make deployment work.
I to faced the same problem, but in my case the problem was i used Jre 1.8. So by checking all the possible was finally i changed the jre7 path by the fallowing way.
Actually it IBM Worklight needs JRE and JDK 1.7(7)
In Worklight Studio, open the Servers view.
Double-click Worklight Development Server to open the Overview page.
In Overview page click on the Runtime Environment
Runtime Environment window in JRE Pane click on Configure JREs...,
It shows Preferences window, in that click on add button.
it shows another window called Add JRE in that select Standard VM and click on next, In JRE Definition click on Dictionary of JRE Home:, Now select the 1.7 JRE path then click on next then click finish
In Preferences window check jre7 and click on OK, finally click on Finish and restart the Eclipse
Now run your application on Worklight development server.