Issue in connecting repository in Navigator of CMODV10.5

Previous topic - Next topic

MHassan

Hello ,

i Have an issue while creating repository of the CMOD in navigator ,
what i do :
          repository->new repository ->content manager on demand -> after the configruations and click connect
Error message appear : the repository is not available
when i go to log files this errors appear :

[4/9/20 13:52:09:773 PDT] 000000b2 SystemOut     O CIWEB Error: [NaviAdmin @ 10.3.23.241] com.ibm.ecm.struts.actions.od.ODLogonAction.createODConnection()
java.lang.NoClassDefFoundError: com.google.gson.JsonSyntaxException
   at com.ibm.ecm.struts.actions.od.ODLogonAction.createODConnection(ODLogonAction.java:261)
   at com.ibm.ecm.struts.actions.od.ODLogonAction.executeAction(ODLogonAction.java:71)
   at com.ibm.ecm.struts.actions.od.ODBaseAction.executeBaseAction(ODBaseAction.java:132)
   at com.ibm.ecm.struts.actions.BaseActionHandlerImpl.executeAction(BaseActionHandlerImpl.java:472)
   at com.ibm.ecm.struts.actions.BaseAction.execute(BaseAction.java:76)
   at com.ibm.ecm.jaxrs.Actions.loadAndExecuteAction(Actions.java:719)
   at com.ibm.ecm.jaxrs.Actions.handleAction(Actions.java:111)
   at com.ibm.ecm.jaxrs.Actions.handlePostRepositoryActions(Actions.java:246)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
   at java.lang.reflect.Method.invoke(Method.java:508)
   at com.ibm.ws.jaxrs20.server.LibertyJaxRsServerFactoryBean.performInvocation(LibertyJaxRsServerFactoryBean.java:659)
   at com.ibm.ws.jaxrs20.server.LibertyJaxRsInvoker.performInvocation(LibertyJaxRsInvoker.java:108)
   at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
   at com.ibm.ws.jaxrs20.server.LibertyJaxRsInvoker.invoke(LibertyJaxRsInvoker.java:174)
   at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:191)
   at com.ibm.ws.jaxrs20.server.LibertyJaxRsInvoker.invoke(LibertyJaxRsInvoker.java:346)
   at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
   at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:73)
   at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:111)
   at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:309)
   at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:136)
   at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:280)
   at com.ibm.ws.jaxrs20.endpoint.AbstractJaxRsWebEndpoint.invoke(AbstractJaxRsWebEndpoint.java:147)
   at com.ibm.websphere.jaxrs.server.IBMRestServlet.handleRequest(IBMRestServlet.java:187)
   at com.ibm.websphere.jaxrs.server.IBMRestServlet.doPost(IBMRestServlet.java:145)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at com.ibm.websphere.jaxrs.server.IBMRestServlet.service(IBMRestServlet.java:133)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
   at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
   at com.ibm.ecm.filters.ESAPIWafFilter.doFilter(ESAPIWafFilter.java:267)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
   at com.ibm.ecm.filters.CORSFilter.doFilter(CORSFilter.java:96)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
   at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
   at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:963)
   at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:289)
   at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
   at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
   at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
   at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
   at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
   at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
   at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
   at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonSyntaxException
   at java.net.URLClassLoader.findClass(URLClassLoader.java:607)
   at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:244)
   at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:846)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:825)
   at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:135)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
   at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
   at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
   at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:634)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
   ... 61 more



is there any support about this problem

Justin Derrick

What have you tried to do in order to fix it?  Did you follow the installation guide?  Have you re-checked your steps?  Did you check for requisite libraries/classes?

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

MHassan

Quote from: Justin Derrick on April 09, 2020, 01:55:17 PM
What have you tried to do in order to fix it?  Did you follow the installation guide?  Have you re-checked your steps?  Did you check for requisite libraries/classes?

-JD.

Hello Derrick,
I follow the installation guide and thats was the file that i should add to my CLASSPATH so i added in my CLASSPATH gson-2.8.6.jar  and restarted my application server but still have the same issue

Justin Derrick

The first line of the error message is complaining about this:

java.lang.NoClassDefFoundError: com.google.gson.JsonSyntaxException

So it sounds like you need to do some triple-checking to ensure the classpath is correct when-and-where ICN needs it.

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rjrussel

OnDemand now has a requirement for GSON. if you are still getting this error message that means it wasn't properly added to the classpath.

sunit

Had the exact same issue. Tracked it down to the following:
In your WebSphere Console navigate to Environment -> Shared Libraries
Select the ECMClientSharedLib and verify that the listed jar files are correct.

What I noticed is that the names did not match with the actual file names.

-SP