Deploy a WAR MF application, but when I try to connect with a device:
/worklight/authorization/v1/clients/instance
Error:
Context Root Not Found
[8/29/15 14:20:49:378 CEST] 00000039 id=
com.worklight.core.ilmt.WorklightILMTLogger < startUp
RETURN [8/29/15 14:20:49:379 CEST] 00000039 id=
com.worklight.server.bundle.project.JeeProjectActivator I
contextInitialized.run FWLST0002I: ========= Project /worklight
started. The project WAR file version is
7.0.0.00.20150729-1801,running on server version 7.0.0.00.20150608-1356. [project worklight] [8/29/15 14:20:49:379 CEST] 00000039 id=
com.worklight.server.bundle.project.JeeProjectActivator <
contextInitialized.runEnd init of worklight in 29448 sec RETURN
[8/29/15 14:20:49:379 CEST] 00000039 id=
com.worklight.common.util.BaseProjectLocal 1 unset
unset ProjectLocal [project worklight] [8/29/15 14:20:49:380 CEST]
00000039 id= com.worklight.common.util.BaseProjectLocal
3 unset java.lang.Throwable
at com.worklight.common.util.BaseProjectLocal.unset(BaseProjectLocal.java:114)
at com.worklight.server.bundle.project.JeeProjectActivator.contextInitialized(JeeProjectActivator.java:283)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2388)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1048)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6404)
I would guess that when deploying the .war file you provided an incorrect context root value, as the error suggests.
An attempt is make at /worklight/authorization/v1/clients/instance, where "worklight" is the context root, but the exception notes that a context root was not found.
You need to double-check your server.xml for correctness.
As suggested in the comments, to further diagnose the issue you need to supply your server.xml and full messages.log files.
Related
When i try to update the build for iphone in Worklight 6.2, It is giving the below Exception. App is working fine for android even Direct Update is happening as expected. But, For iPhone it works fine when a new ipa is built and installed. Whenever the build is updated,it throws below exception(only for iOS).
[11/6/15 17:12:04:816 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0059E: Login into realm 'WLDirectUpdateNullLoginModule' failed. Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'. [project abcApp]
com.worklight.gadgets.GadgetRuntimeException: Failed to create base64 encoded file for for abc#iphone#v1.0 for skin: default
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:345)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.testSkin(DirectUpdateAuthenticator.java:245)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.processRequest(DirectUpdateAuthenticator.java:130)
at com.worklight.core.auth.impl.LoginContext.processRequest(LoginContext.java:200)
at com.worklight.core.auth.impl.AuthenticationContext.checkAuthentication(AuthenticationContext.java:557)
at com.worklight.core.auth.impl.AuthenticationContext.processRealms(AuthenticationContext.java:457)
at com.worklight.core.auth.impl.AuthenticationContext.pushCurrentResource(AuthenticationContext.java:431)
at com.worklight.core.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:75)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:230)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'
at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2109)
at com.worklight.gadgets.serving.handler.GetApplicationUpdatesHandler.getBase64EncodedFile(GetApplicationUpdatesHandler.java:418)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:343)
... 19 more
[11/6/15 17:12:04:816 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0117E: Error code: 4, error description: AUTHENTICATION_ERROR, error message: An error occurred while performing authentication using loginModule WLDirectUpdateNullLoginModule, User Identity Not available. [project abcApp] [project abcApp]
[11/6/15 17:12:05:565 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0059E: Login into realm 'WLDirectUpdateNullLoginModule' failed. Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'. [project abcApp]
com.worklight.gadgets.GadgetRuntimeException: Failed to create base64 encoded file for for abc#iphone#v1.0 for skin: default
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:345)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.testSkin(DirectUpdateAuthenticator.java:245)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.processRequest(DirectUpdateAuthenticator.java:130)
at com.worklight.core.auth.impl.LoginContext.processRequest(LoginContext.java:200)
at com.worklight.core.auth.impl.AuthenticationContext.checkAuthentication(AuthenticationContext.java:557)
at com.worklight.core.auth.impl.AuthenticationContext.processRealms(AuthenticationContext.java:457)
at com.worklight.core.auth.impl.AuthenticationContext.pushCurrentResource(AuthenticationContext.java:431)
at com.worklight.core.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:75)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:230)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'
at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2109)
at com.worklight.gadgets.serving.handler.GetApplicationUpdatesHandler.getBase64EncodedFile(GetApplicationUpdatesHandler.java:418)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:343)
... 19 more
[11/6/15 17:12:05:565 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0117E: Error code: 4, error description: AUTHENTICATION_ERROR, error message: An error occurred while performing authentication using loginModule WLDirectUpdateNullLoginModule, User Identity Not available. [project abcApp] [project abcApp]
This is a recent regression in Worklight 6.2, that was fixed.
Please download and install the latest 6.2 iFix from IBM Fix Central (the fix is in the server component so make sure to install That).
I am trying to deploy worklight adapters in a MobileFirst 6.3 project and I am getting errors in the console: It is throwing
Adapter deployment failed: HTTP 500 - Internal Server Error
When I try to build the project it is building and the server is starting. But when I try to deploy the adapter it is throwing an Error with the following stacktrace:
[ERROR ] /Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
/Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
[ERROR ] /Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
/Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
[ERROR ] Uncaught.init.exception.thrown.by.servlet
ManagementServlet
WorklightServices
java.lang.NoClassDefFoundError: Could not initialize class org.apache.wink.common.internal.i18n.Messages
at org.apache.wink.server.internal.DeploymentConfiguration.initAlternateShortcutMap(DeploymentConfiguration.java:386)
at org.apache.wink.server.internal.DeploymentConfiguration.init(DeploymentConfiguration.java:167)
at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentConfiguration(RestServlet.java:202)
at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:138)
at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:103)
at javax.servlet.GenericServlet.init(GenericServlet.java:161)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325)
at [internal classes]
at com.ibm.worklight.admin.common.filter.HSTSFilter.doFilter(HSTSFilter.java:110)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
The problem is that it cannot find a file:
ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file
or directory)
Make sure you're using a Supported version of Eclipse, which must be Eclipse Java EE Kepler or Luna.
Verify that the problem is not the spaces that you have in the workspace name ("new workspace").
Try with a new Eclipse installation
Running MFPF7.0.0.0-IF201506081356 on WebSphere Liberty 8.5.5.5 (that's 8.5.5 with fp 5 applied), IBM Java 7.0.8.10.
After deploying the first runtime to server the following error occurs:
6/10/15 15:25:05:600 CEST] 0000002c com.ibm.ws.webcontainer.webapp E SRVE0293E: [Servlet Error]-[Failed to load listener: com.worklight.server.bundle.project.JeeProjectActivator]: java.lang.NoClassDefFoundError: com.worklight.server.bundle.api.WorklightBundles
at com.ibm.ws.classloading.internal.AppClassLoader.definePackageAndClass(AppClassLoader.java:308)
at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoader.java:252)
at com.ibm.ws.classloading.internal.ParentLastClassLoader.findOrDelegateLoadClass(ParentLastClassLoader.java:81)
at com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppClassLoader.java:373)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:764)
at java.lang.ClassLoader.loadClass(ClassLoader.java:749)
at com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass0(UnifiedClassLoader.java:106)
at com.ibm.ws.classloading.internal.UnifiedClassLoader$Delegation.loadClass(UnifiedClassLoader.java:77)
at com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:101)
at com.ibm.ws.classloading.internal.ThreadContextClassLoader.loadClass(ThreadContextClassLoader.java:108)
at java.lang.ClassLoader.loadClass(ClassLoader.java:726)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:283)
at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:116)`enter code here`
Any suggestions?
Generally it means that the worklight-jee-library.jar shared library referenced in the server.xml (in each MFP runtime application) is not found. Check the path of this library in the server.xml and that the jar file is present in this path.
I have setup 2 worklight liberty servers ('worklight' and 'customer') - I have changed the port from 9080 to 9081 in server.xml for the customer server and installed runtimes in both environments.
Each server has unique schema when created as well as unique context paths
My issue is that I can see both my runtimes working in the worklight server console, but I get 'No runtime can be found.' error message when I access the customer console
What else needs to be configured in order for this to work?
Using Worklight 6.2 (fixpack 3) Liberty Server
Windows Server
Server configuration tool used to create everything
messages.log:
[11/25/14 15:49:46:087 GMT] 0000001d com.worklight.server.bundle.project.JeeProjectActivator I FWLST0002I: ========= Project /customerproject started. The project WAR file version is 6.2.0.00.20140613-0730,running on server version 6.2.0.00.20140613-0730. [project customerproject]
[11/25/14 15:49:46:087 GMT] 0000001d SystemOut O ================ End init of customerproject 18517
[11/25/14 15:49:46:181 GMT] 0000001d org.apache.wink.server.internal.servlet.RestServlet I The system is using the com.worklight.oauth.AuthorizationServerApplication JAX-RS application class that is named in the javax.ws.rs.Application init-param initialization parameter.
[11/25/14 15:49:46:321 GMT] 0000001a com.worklight.common.util.jmx.LibertyJMXRegister I FWLSE2008I: MBean registration succeeded for: com.worklight.common.server.jmx.api:type=ProjectManagement_customer,qualifier=advancedproject2 [project advancedproject2]
[11/25/14 15:49:46:337 GMT] 0000001a SystemOut O Cleanup dir is C:\IBMX64\WebSphere\Liberty\usr\servers\customer\workarea\org.eclipse.osgi\bundles\79\data\temp\default_node\SMF_WebContainer\advancedproject2\advancedproject\widget-resources
[11/25/14 15:49:46:352 GMT] 0000001d apache.wink.server.internal.application.ApplicationProcessor I The following JAX-RS application has been processed: com.worklight.oauth.AuthorizationServerApplication
[11/25/14 15:49:46:368 GMT] 0000001d org.apache.wink.server.internal.log.Resources I The server has registered the JAX-RS resource class com.worklight.oauth.TokenValidationEndpoint with #Path(/validation).
[11/25/14 15:49:46:368 GMT] 0000001d org.apache.wink.server.internal.log.Resources I The server has registered the JAX-RS resource class com.worklight.oauth.TokenEndpoint with #Path(/token).
[11/25/14 15:49:46:368 GMT] 0000001d org.apache.wink.server.internal.log.Providers I There are no custom JAX-RS providers defined in the application.
[11/25/14 15:49:46:383 GMT] 0000001a com.worklight.common.util.jmx.RuntimeMBeanHandler W Impossible to decode the password
[11/25/14 15:49:46:415 GMT] 0000001a com.worklight.server.bundle.project.JeeProjectActivator I FWLST0002I: ========= Project /advancedproject2 started. The project WAR file version is 6.2.0.00.20140613-0730,running on server version 6.2.0.00.20140613-0730. [project advancedproject2]
[11/25/14 15:49:46:415 GMT] 0000001a SystemOut O ================ End init of advancedproject2 16599
[11/25/14 15:49:46:555 GMT] 0000001a org.apache.wink.server.internal.servlet.RestServlet I The system is using the com.worklight.oauth.AuthorizationServerApplication JAX-RS application class that is named in the javax.ws.rs.Application init-param initialization parameter.
[11/25/14 15:49:46:805 GMT] 0000001d com.ibm.ws.webcontainer.servlet I SRVE0242I: [customerproject] [/customerproject] [AuthorizationServer]: Initialization successful.
[11/25/14 15:49:46:805 GMT] 0000001d com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application customerproject started in 26.351 seconds.
[11/25/14 15:49:46:898 GMT] 0000001a apache.wink.server.internal.application.ApplicationProcessor I The following JAX-RS application has been processed: com.worklight.oauth.AuthorizationServerApplication
[11/25/14 15:49:46:976 GMT] 0000001a org.apache.wink.server.internal.log.Resources I The server has registered the JAX-RS resource class com.worklight.oauth.TokenValidationEndpoint with #Path(/validation).
[11/25/14 15:49:46:976 GMT] 0000001a org.apache.wink.server.internal.log.Resources I The server has registered the JAX-RS resource class com.worklight.oauth.TokenEndpoint with #Path(/token).
[11/25/14 15:49:46:976 GMT] 0000001a org.apache.wink.server.internal.log.Providers I There are no custom JAX-RS providers defined in the application.
[11/25/14 15:49:47:319 GMT] 0000001a com.ibm.ws.webcontainer.servlet I SRVE0242I: [advancedproject2] [/advancedproject2] [AuthorizationServer]: Initialization successful.
[11/25/14 15:49:47:335 GMT] 0000001a com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application advancedproject2 started in 26.881 seconds.
[11/25/14 15:49:47:382 GMT] 00000016 com.ibm.ws.kernel.feature.internal.FeatureManager I CWWKF0008I: Feature update completed in 31.270 seconds.
[11/25/14 15:49:47:382 GMT] 00000016 com.ibm.ws.kernel.feature.internal.FeatureManager A CWWKF0011I: The server customer is ready to run a smarter planet.
[11/25/14 15:49:57:159 GMT] 0000001d com.ibm.worklight.dataaccess.datastore.DataStoreUtil I getWorklightDataSourceProperties Read properties file. allProperties: {ibm.worklight.admin.db.jndi.name=java:comp/env/jdbc/WorklightAdminDS}
[11/25/14 15:49:57:159 GMT] 0000001d com.ibm.worklight.dataaccess.datastore.DataStoreUtil I dereferenceProperties Handling propName=ibm.worklight.admin.db.jndi.name propValue=java:comp/env/jdbc/WorklightAdminDS
[11/25/14 15:49:57:159 GMT] 0000001d com.ibm.worklight.dataaccess.datastore.DataStoreUtil I dereferenceProperties Handling propName=ibm.worklight.admin.db.openjpa.Log propValue=
[11/25/14 15:49:57:159 GMT] 0000001d com.ibm.worklight.dataaccess.datastore.DataStoreUtil I dereferenceProperties Handling propName=ibm.worklight.admin.db.type propValue=
[11/25/14 15:49:57:159 GMT] 0000001d com.ibm.worklight.dataaccess.datastore.DataStore I constructor Creating EntityManagerFactory for persistence-unit=WorklightManagementPU-db2 with properties: {openjpa.ConnectionFactory=com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource#5aaacacc}
[11/25/14 15:49:57:299 GMT] 0000001d SystemErr R 31 WorklightManagementPU-db2 INFO [Default Executor-thread-4] openjpa.Runtime - Starting OpenJPA 1.2.2
[11/25/14 15:49:57:315 GMT] 0000001d SystemErr R 47 WorklightManagementPU-db2 INFO [Default Executor-thread-4] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary" (DB2/NT64 SQL10010 ,IBM Data Server Driver for JDBC and SQLJ 4.13.127).
[11/25/14 15:49:57:455 GMT] 0000001d com.worklight.common.util.jmx.RuntimeMBeanHandler W Impossible to decode the password
[11/25/14 15:49:57:486 GMT] 0000001d com.ibm.worklight.admin.services.RuntimeService E Failed to obtain JMX connection to access an MBean.
There might be a JMX configuration error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[11/25/14 15:49:57:720 GMT] 0000001d com.ibm.worklight.admin.services.RuntimeService W No running mxbeans found
[11/25/14 15:51:47:024 GMT] 00000032 SystemErr R Exception in thread "Thread-23"
[11/25/14 15:51:47:024 GMT] 00000032 SystemErr R java.lang.RuntimeException: Timeout while waiting for the management service to start up
[11/25/14 15:51:47:024 GMT] 00000032 SystemErr R at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:133)
[11/25/14 15:51:47:024 GMT] 00000032 SystemErr R at java.lang.Thread.run(Thread.java:745)
[11/25/14 15:51:47:227 GMT] 00000034 SystemErr R Exception in thread "Thread-25"
[11/25/14 15:51:47:227 GMT] 00000034 SystemErr R java.lang.RuntimeException: Timeout while waiting for the management service to start up
[11/25/14 15:51:47:227 GMT] 00000034 SystemErr R at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:133)
[11/25/14 15:51:47:227 GMT] 00000034 SystemErr R at java.lang.Thread.run(Thread.java:745)
Console.log:
[AUDIT ] CWWKZ0001I: Application customerproject started in 26.351 seconds.
[AUDIT ] CWWKZ0001I: Application advancedproject2 started in 26.881 seconds.
[AUDIT ] CWWKF0011I: The server customer is ready to run a smarter planet.
[err] 31 WorklightManagementPU-db2 INFO [Default Executor-thread-4] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 47 WorklightManagementPU-db2 INFO [Default Executor-thread-4] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary" (DB2/NT64 SQL10010 ,IBM Data Server Driver for JDBC and SQLJ 4.13.127).
[WARNING ] Impossible to decode the password
[ERROR ] Failed to obtain JMX connection to access an MBean.
There might be a JMX configuration error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING ] No running mxbeans found
[err] Exception in thread "Thread-23"
[err] java.lang.RuntimeException: Timeout while waiting for the management service to start up
[err] at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:133)
[err] at java.lang.Thread.run(Thread.java:745)
[err] Exception in thread "Thread-25"
[err] java.lang.RuntimeException: Timeout while waiting for the management service to start up
[err] at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:133)
[err] at java.lang.Thread.run(Thread.java:745)
admin server setup for server 'customer':
<!-- Declare the Worklight Administration Service application. -->
<application id="customerwladmin" name="customerwladmin" location="worklightadmin.war" type="war">
<application-bnd>
<security-role name="worklightadmin">
<user name="demo"/>
</security-role>
<security-role name="worklightdeployer">
</security-role>
<security-role name="worklightmonitor">
</security-role>
<security-role name="worklightoperator">
</security-role>
</application-bnd>
<classloader delegation="parentLast">
<commonLibrary>
<fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.4.jar"/>
</commonLibrary>
</classloader>
</application>
admin service setup for server 'worklight'
<!-- Declare the Worklight Administration Service application. -->
<application id="wladmin" name="wladmin" location="worklightadmin.war" type="war">
<application-bnd>
<security-role name="worklightadmin">
<user name="demo"/>
</security-role>
<security-role name="worklightdeployer">
</security-role>
<security-role name="worklightmonitor">
</security-role>
<security-role name="worklightoperator">
</security-role>
</application-bnd>
<classloader delegation="parentLast">
<commonLibrary>
<fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.4.jar"/>
</commonLibrary>
</classloader>
</application>
There is the following exception :
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
meaning that there is a SSL configuration issue with the certificate.
Might be a duplicate of the following question: No MBean found for worklight project
There, the problem was incorrect setup in the server.xml; you can follow the instructions to verify you are not experiencing the same issue.
With the logs (requested in the comments section), it is hard to pin-point the issue, so here are more questions dealing with the same error:
No Runtime can be found in Worklight Console
No runtime on my Worklight 6.2 Console
No runtime on my Worklight 6.2 Console after installing analytics
You can also read the following support document: http://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.installconfig.doc/install_config/t_verifying_wl_admin_install.html
I am using IBM Worklight 5.0.6 with IBM Maximo Anywhere 7.5.0, with pre-installed Android applications "Work order approval" and "Work order Execution".
When opening one of the apps and providing the username and password, I receive the following error on the login page:
Login failed because the information that is required for your user
could not be downloaded. Try to log in again. If the problem persists,
contact your system administrator.
When checking the log file, I find the following information:
[23.04.14 09:30:41:236 CEST] 0000002b TpaeCustomAut I
processRequest() - Request
URI=/worklight/apps/services/api/WorkApproval/android/query
[23.04.14 09:30:41:250 CEST] 0000002b TpaeCustomAut I processRequest() - Request
URI=/worklight/apps/services/api/WorkApproval/android/my_custom_auth_request_url
[23.04.14 09:30:41:251 CEST] 0000002b TpaeCustomAut I getAuthenticationData() ... Entering
[23.04.14 09:30:41:282 CEST] 0000002b TpaeCustomAut I processRequestAlreadyAuthenticated() ... Entering
[23.04.14 09:30:41:368 CEST] 0000002b TpaeCustomAut I processRequestAlreadyAuthenticated() ... Entering
[23.04.14 09:30:41:370 CEST] 0000005a SystemOut O OSLC query Start {"sessionid":"JSESSIONID=0000utzFBb1jU7JwC4OvvA4rODr:-1;
Path=\/","url":"http:\/\/dummyhost:000\/maximo\/oslc\/os\/oslcmaxuser?savedQuery=currentUser&oslc.select=*"}
[23.04.14 09:30:41:370 CEST] 0000005a SystemOut O OSLC query display Path /maximo/oslc/os/oslcmaxuser
[23.04.14 09:30:41:376 CEST] 0000005a SystemOut O OSLC retrieveUserInfo Start
{"totalTime":4,"isSuccessful":true,"responseHeaders":{"Cache-Control":"no-cache=\"set-cookie,
set-cookie2\"","Server":"IBM_HTTP_Server","Expires":"Thu, 01 Dec 1994
16:00:00
GMT","Location":"http:\/\/localhost\/maximo\/webclient\/login\/login.jsp?appservauth=true","Keep-Alive":"timeout=10,
max=100","Content-Length":"0","Content-Language":"de-CH","Date":"Wed,
23 Apr 2014 07:30:41
GMT","Connection":"Keep-Alive","Content-Type":"text\/plain","Set-Cookie":["WASPostParam=rO0ABXNyABNqYXZhLnV0aWwuSGFzaHRhYmxlE7sPJSFK5LgDAAJGAApsb2FkRmFjdG9ySQAJdGhyZXNob2xkeHA\/QAAAAAAACHcIAAAACwAAAAJ0AAFVdAAbL21heGltby9vc2xjL29zL29zbGNtYXh1c2VydAABUHNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAAAADdAALQ29udGVudERhdGF1cgACW0Ks8xf4BghU4AIAAHhwAAAAJHNhdmVkUXVlcnk9Y3VycmVudFVzZXImb3NsYy5zZWxlY3Q9KnQAC0NvbnRlbnRUeXBldAAhYXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVkdAARQ29udGVudERhdGFMZW5ndGhzcgARamF2YS5sYW5nLkludGVnZXIS4qCk94GHOAIAAUkABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAAAAJHh4;
Path=\/maximo\/oslc\/os\/oslcmaxuser","WASReqURL=http:\/\/\/maximo\/oslc\/os\/oslcmaxuser;
Path=\/"]},"statusReason":"Found","responseTime":4,"statusCode":302}
[23.04.14 09:30:41:376 CEST] 0000005a InvocationCon E logError FWLSE0099E: An error occurred while invoking procedure
OSLCGenericAdapter/getUserAccessDataFWLSE0100E: parameters:{
"arr": [
{
"sessionid": "JSESSIONID=0000utzFBb1jU7JwC4OvvA4rODr:-1; Path=\/"
}
]
}
null
FWLSE0101E: Caused by: null
Any ideas?
References:
IBM Maximo Anywhere
IBM Maximo Anywhere & Worklight
You can try to clean application cache & data of your Android apps. Personally, I use an emulator and i have to clean it each time I want to launch apps otherwise it doesn't work.
I already had this error, but I had so much errors with Anywhere, I don't remember what I did each time :)