Topic
  • 6 replies
  • Latest Post - ‏2013-04-24T09:04:49Z by Aidenlin
TROndrey
TROndrey
26 Posts

Pinned topic NoClassDefFoundError Cognos Administration Web

‏2010-04-16T20:24:12Z |
Hi everyone,

I am working on my first install of Cognos 8. I am setting up a distributed installation with the Content Manager, Application Tier, Data Source(Oracle10g) and Gateway(Apache2.2.10) on 4 separate systems(z/Linux64(SLES11).

All servers are up and running. I am trying to navigate around and learn the inner workings of the Cognos Administration site via the Gateway.

A number of different functions result in this error:


NoClassDefFoundError Unexpected exception 

while executing the xml pipeline process 
'stage_d0n1892'   com.cognos.portal.xml.pipeline.PipelineException: Unexpected exception 

while executing the xml pipeline process 
'stage_d0n1892' at com.cognos.portal.xml.pipeline.ProcessInstance.process(ProcessInstance.java:257) at com.cognos.portal.xml.pipeline.ProcessInstance.process(ProcessInstance.java:217) at com.cognos.portal.xml.pipeline.ProcessInstance.process(ProcessInstance.java:217) at com.cognos.portal.xml.pipeline.PipelineDefinition.executePipeline(PipelineDefinition.java:378) at com.cognos.portal.fragment.producer.FragmentProducer.executePipeline(FragmentProducer.java:346) at com.cognos.portal.xml.pipeline.Pipeline.execute(Pipeline.java:118) at com.cognos.portal.fragment.service.FragmentService.invokeImpl(FragmentService.java:278) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.logic.ChainHandler.invokeImpl(ChainHandler.java:79) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.p2plb.clerver.LoadBalanceHandler.rawForwardToSelf(LoadBalanceHandler.java:673) at com.cognos.p2plb.clerver.LoadBalanceHandler.forwardToSelf(LoadBalanceHandler.java:639) at com.cognos.p2plb.clerver.LoadBalanceHandler.invokeImpl(LoadBalanceHandler.java:388) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.logic.ChainHandler.invokeImpl(ChainHandler.java:79) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.engine.ServiceLookupHandler.invokeImpl(ServiceLookupHandler.java:126) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.logic.ChainHandler.invokeImpl(ChainHandler.java:79) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.performance.PerformanceIndicationHandler.invokeImpl(PerformanceIndicationHandler.java:149) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.impl.PogoEngineImpl.service(PogoEngineImpl.java:146) at com.cognos.pogo.transport.PogoServlet.processRequest(PogoServlet.java:264) at com.cognos.pogo.transport.PogoServlet.doPost(PogoServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.cognos.pogo.isolation.ServletWrapper.service(ServletWrapper.java:324) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:153) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2398) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:146) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:579) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:736) java.lang.NoClassDefFoundError: com.ibm.json.java.JSONObject at com.cognos.admin.j2html.ControlledComponent.<init>(ControlledComponent.java:38) at com.cognos.admin.j2html.ControlledComponent.<init>(ControlledComponent.java:46) at com.cognos.admin.portal.components.system.scorecard.ScorecardComponent.<init>(ScorecardComponent.java:49) at com.cognos.admin.portal.producer.process.system.scorecard.RelationshipsView.executeImpl(RelationshipsView.java:128) at com.cognos.portal.fragment.producer.stage.Stage.execute(Stage.java:78) at com.cognos.portal.xml.pipeline.ProcessInstance.process(ProcessInstance.java:238) at com.cognos.portal.xml.pipeline.ProcessInstance.process(ProcessInstance.java:217) at com.cognos.portal.xml.pipeline.ProcessInstance.process(ProcessInstance.java:217) at com.cognos.portal.xml.pipeline.PipelineDefinition.executePipeline(PipelineDefinition.java:378) at com.cognos.portal.fragment.producer.FragmentProducer.executePipeline(FragmentProducer.java:346) at com.cognos.portal.xml.pipeline.Pipeline.execute(Pipeline.java:118) at com.cognos.portal.fragment.service.FragmentService.invokeImpl(FragmentService.java:278) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.logic.ChainHandler.invokeImpl(ChainHandler.java:79) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.p2plb.clerver.LoadBalanceHandler.rawForwardToSelf(LoadBalanceHandler.java:673) at com.cognos.p2plb.clerver.LoadBalanceHandler.forwardToSelf(LoadBalanceHandler.java:639) at com.cognos.p2plb.clerver.LoadBalanceHandler.invokeImpl(LoadBalanceHandler.java:388) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.logic.ChainHandler.invokeImpl(ChainHandler.java:79) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.engine.ServiceLookupHandler.invokeImpl(ServiceLookupHandler.java:126) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.logic.ChainHandler.invokeImpl(ChainHandler.java:79) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.handlers.performance.PerformanceIndicationHandler.invokeImpl(PerformanceIndicationHandler.java:149) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.pogo.impl.PogoEngineImpl.service(PogoEngineImpl.java:146) at com.cognos.pogo.transport.PogoServlet.processRequest(PogoServlet.java:264) at com.cognos.pogo.transport.PogoServlet.doPost(PogoServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.cognos.pogo.isolation.ServletWrapper.service(ServletWrapper.java:324) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:153) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2398) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:146) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:579) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:736) Caused by: java.lang.ClassNotFoundException: com.ibm.json.java.JSONObject at java.lang.Throwable.<init>(Throwable.java:80) at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289) at com.cognos.pogo.isolation.ParanoidClassLoader.findClassParentLast(ParanoidClassLoader.java:186) at com.cognos.pogo.isolation.ParanoidClassLoader.loadClass(ParanoidClassLoader.java:164) at java.lang.ClassLoader.loadClass(ClassLoader.java:618) ... 62 more


Please let me know if you need any more information. TIA
Updated on 2010-07-19T17:45:04Z at 2010-07-19T17:45:04Z by TROndrey
  • WasimIsmail
    WasimIsmail
    12 Posts

    Re: NoClassDefFoundError Cognos Administration Web

    ‏2010-04-27T08:32:56Z  
    Hi

    I'm getting the same error.
    It might be due to this "com.ibm.json.java.JSONObject" missing library - but I'm just guessing.

    If you've come across some solution do share it.

    Thanks
    Wasim
  • ShawnCrook
    ShawnCrook
    4 Posts

    Re: NoClassDefFoundError Cognos Administration Web

    ‏2010-05-07T17:27:07Z  
    Hi

    I'm getting the same error.
    It might be due to this "com.ibm.json.java.JSONObject" missing library - but I'm just guessing.

    If you've come across some solution do share it.

    Thanks
    Wasim
    The Java to JSON implementation was changed to an IBM solution. To fix thsi particular issue, you need to install a later release or perhaps a fixpack.

    If you have access to IBM's json4j.jar you can do the following:

    1) Stop the server
    2) Replace json.jar with IBM's impl found in JSON4J.jar. In that jar, you will find several classes, one of which is the missing class file (ie. com.ibm.json.java.JSONObject).
    3) Restart the server.

    jso4j.jar is available within WebSphere Application Server Feature Pack (Web2.0) You'll find links to it here: http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/
  • TROndrey
    TROndrey
    26 Posts

    Re: NoClassDefFoundError Cognos Administration Web

    ‏2010-05-07T19:29:12Z  
    The Java to JSON implementation was changed to an IBM solution. To fix thsi particular issue, you need to install a later release or perhaps a fixpack.

    If you have access to IBM's json4j.jar you can do the following:

    1) Stop the server
    2) Replace json.jar with IBM's impl found in JSON4J.jar. In that jar, you will find several classes, one of which is the missing class file (ie. com.ibm.json.java.JSONObject).
    3) Restart the server.

    jso4j.jar is available within WebSphere Application Server Feature Pack (Web2.0) You'll find links to it here: http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/
    Ah that explains it then. The fixpack I installed fixed the issue. Wasim, it appears the fix pack is the fix and not the Apache Module workaround I had also applied.
  • TROndrey
    TROndrey
    26 Posts

    Re: NoClassDefFoundError Cognos Administration Web

    ‏2010-05-07T19:29:41Z  
    Install the FixPack for 8.4.1
  • TROndrey
    TROndrey
    26 Posts

    Re: NoClassDefFoundError Cognos Administration Web

    ‏2010-07-19T17:45:04Z  
    The Java to JSON implementation was changed to an IBM solution. To fix thsi particular issue, you need to install a later release or perhaps a fixpack.

    If you have access to IBM's json4j.jar you can do the following:

    1) Stop the server
    2) Replace json.jar with IBM's impl found in JSON4J.jar. In that jar, you will find several classes, one of which is the missing class file (ie. com.ibm.json.java.JSONObject).
    3) Restart the server.

    jso4j.jar is available within WebSphere Application Server Feature Pack (Web2.0) You'll find links to it here: http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/
    Thank you @ShawnCrook, using the JSON4J.jar file was the right fix.

    Anyone else think this file should come pre-packaged since not all of us are using WebSphere?
  • Aidenlin
    Aidenlin
    1 Post

    Re: How to replace json.jar with IBM's IMPL found in JSON4J.jar

    ‏2013-04-24T09:04:49Z  
    The Java to JSON implementation was changed to an IBM solution. To fix thsi particular issue, you need to install a later release or perhaps a fixpack.

    If you have access to IBM's json4j.jar you can do the following:

    1) Stop the server
    2) Replace json.jar with IBM's impl found in JSON4J.jar. In that jar, you will find several classes, one of which is the missing class file (ie. com.ibm.json.java.JSONObject).
    3) Restart the server.

    jso4j.jar is available within WebSphere Application Server Feature Pack (Web2.0) You'll find links to it here: http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/