Multiple Worklight servers on single host configuration - ibm-mobilefirst

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

Related

weblogic 12c with richfaces 4.0.0 - For <rich:fileUpload> Deployment Failed

Issue when I try to deploy in to weblogic 12C
Steps that I followed,
JSTL - 1.2
JSF - 1.2
richfaces-rich-4.5.17.Final
richfaces-a4j-4.5.17.Final
richfaces-core-4.5.17.Final
Also I included,
guava-18.0.jar
cssparser-0.9.19.jar
sac-1.3.jar
annotations-4.0.0.Final.jar
Deployment was successful, but when I tried to upload a file using <rich:fileUpload> I got the following error:
The JSF implementation 1.0.0.0_2-1-5 does not support the RichFaces ExtendedPartialViewContext. Please upgrade to at least Mojarra 2.1.28 or 2.2.6
Then I upgrade JSF1.2 to jsf-api-2.1.28 and jsf-impl-2.1.28 with Richfaces 4.5.17.
When I try to file upload received:
javax.servlet.ServletException: IO Error parsing multipart request
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:352)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:75)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:343)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:75)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:302)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:367)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:75)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:75)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:75)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2091)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1512)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: org.ajax4jsf.exception.FileUploadException: IO Error parsing multipart request
at org.ajax4jsf.request.MultipartRequest.parseRequest(MultipartRequest.java:388)
at org.richfaces.component.FileUploadPhaselistener.beforePhase(FileUploadPhaselistener.java:63)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
... 29 more
Found The JSF default version of 12.1.1 WLS server is lower than 2.1.28 JSF version, so I changed JSF version to jsf-api-2.0.0 and jsf-impl-2.0.0 and
changed RichFaces version from 4.5.17 to:
richfaces-core-api-4.0.0.Final
richfaces-core-impl-4.0.0.Final
richfaces-components-ui-4.0.0.Final
richfaces-components-api-4.0.0.Final.
Deployment Failed:
<Critical error during deployment:
com.sun.faces.config.ConfigurationException: The tag named remove from namespace http://java.sun.com/jsf/facelets has a null handler-class defined
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass(FaceletTaglibConfigProcessor.java:415)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:371)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:314)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:362)
Truncated. see log file for complete stacktrace
>
<Jul 12, 2016 6:29:19 PM SGT> <Warning> <HTTP> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named remove from namespace http://java.sun.com/jsf/facelets has a null handler-class defined.
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named remove from namespace http://java.sun.com/jsf/facelets has a null handler-class defined
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:582)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
Truncated. see log file for complete stacktrace
Caused By: com.sun.faces.config.ConfigurationException: The tag named remove from namespace http://java.sun.com/jsf/facelets has a null handler-class defined
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass(FaceletTaglibConfigProcessor.java:415)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:371)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:314)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:362)
Truncated. see log file for complete stacktrace
I changed web.xml header to:
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
Please advice for rich:fileUpload in WebLogic 12c using RichFaces.
richfaces-xxx-4.5 works with JSF 2. It means you cannot deploy it with JSF 1.2

OSGi JAX-RS Connector with Adobe CQ 5.6 (MOXY)

We are getting an exception while accessing a JAX-RS service installed in my local Adobe CQ (5.6.1). I'm using the OSGi JAX-RS Connector project for JAX-RS integration in CQ using "provider-moxy".
While accessing my test service, the system is is throwing an Exception as follows
15.09.2015 18:03:45.862 *INFO* [0:0:0:0:0:0:0:1 [1442343820762] GET /services/person/get HTTP/1.1] servletengine Servlet threw exception: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: org/eclipse/persistence/internal/jaxb/many/MapEntry
at org.glassfish.jersey.servlet.internal.ResponseWriter.rethrow(ResponseWriter.java:256)
at org.glassfish.jersey.servlet.internal.ResponseWriter.failure(ResponseWriter.java:238)
at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:486)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:316)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:291)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1140)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:403)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)
at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:263)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
at
...............................
But the reported class is already present in "org.eclipse.persistence.moxy-2.6.0.jar" which is in activated state.
As I'm stuck , any pointers to solve this issue is greatly appreciated.
Update
The stack trace also says
Caused by: java.lang.ClassNotFoundException: org.eclipse.persistence.internal.jaxb.many.MapEntry not found by my-bundle [308]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1500)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1923)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.persistence.internal.jaxb.JaxbClassLoader.loadClass(JaxbClassLoader.java:107)
... 91 more
But the manifest creation directive for my-bundle is
Import-Package * Import-Package
Thanks and Regards,
San
It seems the error can be solved by adding an Import-package statement for "org.eclipse.persistence.internal.jaxb.many" in my custom bundle.

com.worklight.common.util.BaseProjectLocal.unset

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.

Bad version error in jvm , offset 6 , with Apache Cxf Soap Web service

Can anybody please help me with this issue and provide me the solution because I can't even figure out what kind of error it was with Apache Cxf or webservice call or java version number or web sphere 8.5.5?
I'm using Apache cxf 2.7.8 version to publish a Soap web service with web sphere 8.5.5 version and java 7.
Caused by: java.lang.UnsupportedClassVersionError: **JVMCFRE003 bad major version;** class=com/fd/foundation/frameworks/mybaitis/helloWorld/resource/MessageServiceImpl, **offset=6**
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
at java.net.URLClassLoader.access$300(URLClassLoader.java:79)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038)
at java.security.AccessController.doPrivileged(AccessController.java:362)
at java.net.URLClassLoader.findClass(URLClassLoader.java:429)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:703)
at java.lang.ClassLoader.loadClass(ClassLoader.java:682)
at java.lang.ClassLoader.loadClass(ClassLoader.java:665)
at com.ibm.jtc.jax.tools.ws.wscompile.WsgenOptions.getClass(WsgenOptions.java:299)
when I check my logs in the websphere 8.5.5 after installing the application I got the below error ?
[7/1/14 0:23:47:890 CDT] 00000043 SystemErr R java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files (x86)/IBM/WebSphere/AppServer/lib/pc-appext.jar
[7/1/14 0:23:47:905 CDT] 00000043 SystemErr R at java.net.URI$Parser.fail(URI.java:2821)
[7/1/14 0:23:47:905 CDT] 00000043 SystemErr R at java.net.URI$Parser.checkChars(URI.java:2994)
[7/1/14 0:23:47:905 CDT] 00000043 SystemErr R at java.net.URI$Parser.parseHierarchical(URI.java:3078)
[7/1/14 0:23:47:906 CDT] 00000043 SystemErr R at java.net.URI$Parser.parse(URI.java:3026)
[7/1/14 0:23:47:906 CDT] 00000043 SystemErr R at java.net.URI.<init>(URI.java:588)
[7/1/14 0:23:47:906 CDT] 00000043 SystemErr R at java.net.URL.toURI(URL.java:930)
[7/1/14 0:23:47:906 CDT] 00000043 SystemErr R at com.ibm.wkplc.extensionregistry.RegistryLoader.canonicalizeFileURL(RegistryLoader.java:671
)
Below is my web service implementation class looks like ;
#WebService(endpointInterface = "com.fd.foundation.frameworks.mybaitis.helloWorld.resource.MessageServices",serviceName ="messageService")
public class MessageServiceImpl implements MessageServices {
public MessageVO getMessage(Integer id) {
MessageService message = new MessageService();
MessageVO mvo = message.getUserDetails1(101);
return mvo;
}
This my service interface looks like :
#WebService
public interface MessageServices{
#WebMethod
public MessageVO getMessage(Integer id);
}
Look like you are running on Java 6 instead of 7 and code is compiled with Java7
Caused by: java.lang.UnsupportedClassVersionError
Check in the SystemOut.log, if server correctly starts with Java v7:
************ Start Display Current Environment ************
WebSphere [IBMJAVA7 7.0.5.0 cf011340.01]Platform 8.5.5.1 [BASE 8.5.5.1 cf011341.03] running with process name node02Cell\node02\server1 and process id 2920
Host Operating System is Windows Server 2003, version 5.2
Java version = 1.7.0, Java Compiler = j9jit26, Java VM name = IBM J9 VM
was.install.root = C:\IBM\WebSphere\AppServer85
user.install.root = C:\IBM\WebSphere\AppServer85\profiles\AppSrv1
Java Home = C:\IBM\WebSphere\AppServer85\java_1.7_32\jre

IBM Worklight 5.0.6 - FWLSE0099E: An error occurred while invoking procedure OSLCGenericAdapter/getUserAccessDataFWLSE0100E

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 :)