I tried to follow a basic example from the developer site (Creating First Hybrid Application), however i have not been able lo launch the development server successfully.
I am using Eclipse Luna with MobileFirst Studio plug-in 7.0 for Eclipse, Java 1.7 and running on Mac OS 10.9.5
When i'm launching the Worklight server it starts to load, but at 20% (more or less) the process stops moving and eventually the MobileFirst console from eclipse shows the error:
[2015-04-17 13:18:44] Starting build process: application 'Test', all environments
[2015-04-17 13:18:51] Application 'Test' with all environments build finished.
[2015-04-17 13:18:51] Deploying application 'Test' with all environments to MobileFirst Server...
[2015-04-17 13:20:28] Failed to deploy application 'Test' to MobileFirst Server: : Socket operation timed out before it could be completed
And the console output for the server is the following:
objc[60261]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.4/wlp-1.0.7.cl50420141121-1414) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_71-b14 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/serializer-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path serializer.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/analytics/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/IBMJMXConnectorREST/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/Test/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 1.047 seconds.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/serializer-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path serializer.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/analytics-service/
[AUDIT ] CWWKZ0001I: Application AnalyticsUI started in 5.124 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/worklightconsole/
[AUDIT ] CWWKZ0001I: Application WorklightConsole started in 6.248 seconds.
[AUDIT ] CWWKZ0001I: Application Test started in 6.466 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/worklightadmin/
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[AUDIT ] CWWKZ0001I: Application AnalyticsServices started in 13.256 seconds.
[AUDIT ] CWWKZ0001I: Application WorklightServices started in 14.172 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[ERROR ] FWLSE3000E: A server error was detected.
Socket operation timed out before it could be completed
As an annotation, I have been able to solve the warning about JavaLauncherHelper by using a different JVM (1.6), but the main error persists so i came back to the original JVM (1.7).
Have this happened to anyone?
Does anyone knows where I can get more information about this error? I have been searching at this site and the IBM forums.
The Java error is known, and is between Java and Mac. It's got nothing to do with MobileFirst Platform.
The real issue, is the socket timeout:
Socket operation timed out before it could be completed
Things to try:
Update Java 7 to the latest public build of Java 7 (not 8) then try again
Kill the Java process then try again
Make sure you do not have several IP address (via ifconfig); bind an address in Eclipse > Servers view > double-click on "MobileFirst Development Server" and change the host value
Related
Environment:
Ecipse Luna(4.4.2)
MoibleFirstStudioPlugin 7.0.0.00-20150610-1353
Mac OS X 10.10.5
java Oracle jdk1.7.0.71
I created Hello World App in moiblefirst project.
When I tried to deploy this app to development server, I got following error.
[2015-08-19 16:48:30] Application 'helloworld' with all environments build finished.
[2015-08-19 16:48:30] Deploying application 'helloworld' with all environments to MobileFirst Server...
[2015-08-19 16:48:34] Failed to deploy application 'helloworld' to MobileFirst Server: : HTTP 500 - Internal Server Error
The cause is below.
[ERROR ] Unable to create project lock entity for helloworld even after 2 tries.
The project lock entity still does not exist.
I don't understand what these errors mean.
How can I fix it?The whole logs are below.
objc[1021]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.4/wlp-1.0.7.cl50420141121-1414) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_71-b14 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/serializer-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path serializer.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/analytics/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/IBMJMXConnectorREST/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/helloworld/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 1.782 seconds.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/serializer-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path serializer.jar can not be found in jar file wsjar:file:/Users/satohiro29894/Documents/workspace/accesstoken_touchid2/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/analytics-service/
[AUDIT ] CWWKZ0001I: Application AnalyticsUI started in 10.129 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/worklightconsole/
[AUDIT ] CWWKZ0001I: Application WorklightConsole started in 12.644 seconds.
[AUDIT ] CWWKZ0001I: Application helloworld started in 13.867 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.68.100.12:10080/worklightadmin/
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[AUDIT ] CWWKZ0001I: Application AnalyticsServices started in 29.995 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[AUDIT ] CWWKZ0022W: Application WorklightServices has not started in 30.006 seconds.
[WARNING ] Using empty value for configuration property 'trusted.signer.certificate.paths'
[AUDIT ] CWWKZ0001I: Application WorklightServices started in 33.576 seconds.
[ERROR ] Unable to create project lock entity for helloworld even after 2 tries.
The project lock entity still does not exist.
It seems that my workspace folder name was too long. I changed folder name from 19 characters to 7 characters. Now it works.
1) Java version "1.7.0_71" i have installed
2) I download eclipse Version: Kepler Service Release 1
Build id: 20130919-0819 and extracted.
3) I have tried to install worklight6.2 as said in this while installing i have faced this issue so as per the suggestion in that post i have downloaded worklight6.2 from that site and configured.
4) And then configured ADT plugin with my eclipse.
5) Now i have created a Hello world app as per the instructions.
6) Started the server by right click on Worklight development server and start.
7) Now right click on HelloWorld Run As -> Run on worklight development server.
then i have opened my app in browser and clicked on Preview as common Resources it but it is giving the following exception in browser:
i have gone through some of these links but those did not help.
ErrorLog is as follows..
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.1/wlp-1.0.4.cl50120131011-1639) on Java HotSpot(TM) Client VM, version 1.7.0_71-b14 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[AUDIT ] CWWKZ0022W: Application WorklightConsole has not started in 30.012 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[AUDIT ] CWWKZ0022W: Application HelloWorld has not started in 30.027 seconds.
[AUDIT ] CWWKZ0022W: Application _MobileBrowserSimulator has not started in 30.016 seconds.
[AUDIT ] CWWKZ0022W: Application WorklightServices has not started in 30.017 seconds.
[AUDIT ] CWWKZ0022W: Application _analytics has not started in 30.013 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/IBMJMXConnectorREST/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/worklightadmin/
[AUDIT ] CWWKZ0001I: Application WorklightServices started in 84.379 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/_analytics/
[AUDIT ] CWWKZ0001I: Application _analytics started in 77.031 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/HelloWorld/
[AUDIT ] CWWKZ0001I: Application HelloWorld started in 86.932 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 84.441 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/worklightconsole/
[AUDIT ] CWWKZ0001I: Application WorklightConsole started in 87.959 seconds.
[ERROR ] FWLST0003E: ========= Failed starting project /HelloWorld [project HelloWorld]
java.lang.reflect.InvocationTargetException
[ERROR ] FWLST0003E: ========= Failed starting project /HelloWorld [project HelloWorld]
java.lang.reflect.InvocationTargetException
[ERROR ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.net.SocketTimeoutException: Read timed out
at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:435)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:128)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.net.SocketTimeoutException: Read timed out
... 5 more
Harish,
I have faced similar issues and I know it's frustrating. It's mainly because of the configuration and nothing else.
The key element is to make sure that you have the right eclipse version and have installed the plugins from the market place. I always prefer to download ADT from the Android Developer Site and then install Marketplace and then subsequently install the Worklight plugins. In a way getting the Android configuration done too, we would need it anyway. => This way of installation has helped me configure it well without issues for my peers at workplace.
I don't remember the exact fix for this issue, but I suggest that you try the following steps:
Make sure that the Java compiler is version 1.7 (Eclipse > Preferences > Compiler > 1.7) and similarly the corresponding JRE version.
Increase the Worklight server timeout to 180 seconds if lower. (First enable the server view by Eclipse > Window > Show View > Server > Servers) and then double click on the (Worklight Development Server) which will open up a GUI for it's configuration. In it, you will find Timeouts, increase the start timeout to 180 seconds.
Increase the memory allotted to JVM by configuring the jvm.options under Worklight Development Server
like this -> -Xmx1024m
If these above steps don't help and if you have ample time, then you can start off installing and configuring the way that I have mentioned before.
Hope this helps.
I have IBM Worklight 6.2 development environment with the following setup.
Oracle Java 1.7
Eclipse 4.3
IBM Worklight 6.2 Developer Edition
A sample Hybrid project had been created and deployed in the Worklight development server and app works fine in the Mobile Browser Simulator.
I am getting the following error in Worklight Server console in Eclipse:
[ERROR ] Failed to obtain JMX connection to access an MBean.
There might be a JMX configuration error: Read timed out
[ERROR ] FWLSE3000E: A server error was detected.
FWLSE3012E: JMX configuration error. Unable to obtain MBeans. Reason: "Read timed out".
And also I am getting the following error in Worklight Console[Web Console].
FWLSE3012E: JMX configuration error. Unable to obtain MBeans. Reason: "Read timed out".
Note:
I have read the following questions but no luck.
IBM Worklight - Can't run an app on WebSphere Application Server
How to solve management service not starting up in Worklight 6.2
Additional Info:
I used to get the following error whenever the Worklight development server is started from eclipse.
*[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.*
I hope necessary information's I have provided. Let me know if u still need.
The JMX timeout error in Worklight 6.2 is a known issue.
Typically when this error occurs to me, a way to resolve it is to either 'wait' a while and then to stop & restart the Worklight Server (in Eclipse > Servers view > 'play' button). Another option is to restart Eclipse.
You can also try the suggestions from the comments:
Try to edit the file
WorklightServerConfig/servers/worklight/jvm.options in your Eclipse
workspace, adding the line
"-Dcom.ibm.ws.jmx.connector.client.rest.readTimeout=180000". Then stop and restart the Worklight Development Server.
and
Try to edit the file
WorklightServerConfig/servers/worklight/server.xml and add in the
section the following line, then restart and try again:
<executor name="LargeThreadPool" id="default" coreThreads="40"
maxThreads="80" keepAlive="60s" stealPolicy="STRICT"
rejectedWorkPolicy="CALLER_RUNS" />
Best is to open a PMR (support ticket) and request an iFix as this is due to be fixed.
The following error occurs when I start worklight:
objc[732]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
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.7.0_40-b43 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://acab0a7a.ipt.aol.com:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 0.274 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://acab0a7a.ipt.aol.com:10080/mobile/
[err] 22 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/Users/thomas/Documents/workspace/Concert/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.
[ERROR ] FWLST0003E: ========= Failed starting project /mobile [project mobile]
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
Caused by (repeated) ... : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
...
Caused by: java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
...
[AUDIT ] CWWKZ0001I: Application mobile started in 4.168 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
I'm running OS X (10.8.4), Eclipse Juno SR2 20130225-0426, worklight plugin version 6.0.0.20130724-1819, Eclipse is pointing to jdk1.7.0_40 ("MacOS X VM") running in 1.7 compiler compliance level. CustomLoginModule is on the server and in the Eclipse viewer its covered in odd errors such as "String cannot be resolved to a type". I had this same error in windows and I believe I fixed it when I switched the eclipse jdk, but that didn't help this time. I really think this is a jdk issue, but everything seems correct. Any ideas? Thanks
EDIT: I resolved the issue by right clicking my project > properties > Java Build Path > Libraries > editing that "JRE System Library [jre7] (unbound)" and selecting "Workspace default JRE (Home)" thanks for your help! I got another problem now, but this one looks familiar as well. –
Have you checked for updates to your installed Worklight plug-in? a fix for 6.0.0.0 was released a while ago. Please check.
Otherwise, and I am not entirely sure, you should perhaps do the following:
Right-click on the Worklight project >> Properties
Java Build Path >> Libraries >> Add Library >> Server Runtime
Choose "Worklight Development Server" >> OK
Clean >> Restart server
I am using IBM Worklight environment. I have created a small application "SampleHybridProject" using Worklight Developer studio and tested it successfully.
Now when I am trying to deploy it on the Worklight Server Consumer Edition, and hitting the following URL: http://mymachine.com:9080/SampleHybridProject/console
I am getting this error in my browser:
Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target servlet configured for uri: /SampleHybridProject/console
I am using Worklight Edition 5.0.6. The Worklight Server is default "WAS with Liberty profile".
Here are the properties that I changed in worklight.properties file.
publicWorkLightHostname=localhost
publicWorkLightProtocol=http
publicWorkLightPort=9080
publicWorkLightContext=/SampleHybridProject
wl.db.type=MYSQL
wl.db.url=jdbc:mysql://mysqlinstalledonmypc:3306/WRKLGHT
wl.db.username=root
wl.db.password=admin
Here are the changes that I made in application-descriptor.xml:
<worklightServerRootURL>http://${local.IPAddress}:9080/SampleHybridProject</worklightServerRootURL>
Can you tell me what I am doing wrong or what I need to do?
I have found the problem and solved it. The problem is I was having this error in console.log file:
Error creating bean with name 'txManager' defined in URL [jar:file:/C:/ProgramData/IBM/Worklight/WAS85liberty-server/wlp/usr/shared/resources/lib/worklight-jee-library.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of com/ibm/ws/classloading/internal/UnifiedClassLoader) previously initiated loading for a different type with name "javax/sql/DataSource"
This was because I had a jar in the server/lib folder of my project which was causing this problem. I removed the jar from server/lib folder and redeployed the .war file. Now the console is getting loaded.
Are you getting any deployment errors in your liberty logs? A 404 on the context root generally means either the WAR was not found, or the context root defaults to something other than 'SampleHybridProject'. If the WAR appears to be loading correctly, it will output where it is listening on similar to:
[AUDIT ] CWWKT0016I: Web application available (default_host): http://[hostname]:port/SampleHybridProject/*
If it says the context root is anything other than SampleHybridProject, you can set it in the tag in liberty's server.xml:
<application id="SampleHybridProject" name="SampleHybridProject"
location="SampleHybridProject.war" type="war"
context-root="SampleHybridProject">
...
</application>