It's all about the answers!

Ask a question

Why is Insight 1.1 throwing a servlet error right after install before I've configured anything?


Michael Walker (99215201157) | asked Jan 04 '13, 6:40 p.m.
I'm setting up Insight 1.1 on a 32-bit Windows 2003 server.  I plan to migrate an existing RRDI 1.0.2 to this new Insight install.  The existing Content Store and Data Warehouse databases reside on an AIX box.

After successfully installing Insight through Installation Manager I started going through the steps to migrate:

1. Stopped Insight Service

2. Copied DB2 files to 2 locations

3. Deleted folders/files under Cognos/Configuration as specified.

4.  Copied "backed up" cogstartup.xml and Jazzns*_.xml file to Cognos/Configuration

5. Started Congos Config and got message that file was downlevel.  Saved successfully and also test datastore was successful.

I then sarted the service again successfully but never go a upgradeLog.xml file in the Logs file.

When I try and connect to Insight I get the following error:  Error 500: javax.servlet.ServletException: Cannot load servlet

I looked in the SystemOut.log file and noticed that error was occurring all the way back during the install or right after so it doesn't seem to be related to the migration, and instead the install. 

I also have a couple RRDI 2.x projects running on this server that share the same WebSphere. For Insight I specified to use a new WebSphere.  I was able to get this to install fine on another server.

Any ideas how to resolve this?



[1/4/13 13:44:27:778 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.cfgss: Adding class library file:/E:/Program Files/IBM/Insight11_LUW/AppServer/profiles/RationalReport/installedApps/svljazz04Node02Cell/IBM Cognos.ear/p2pd.war/WEB-INF/lib/xqexml.jar
[1/4/13 13:44:27:778 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.cfgss: Adding class library file:/E:/Program Files/IBM/Insight11_LUW/AppServer/profiles/RationalReport/installedApps/svljazz04Node02Cell/IBM Cognos.ear/p2pd.war/WEB-INF/lib/xqeXMLA.jar
[1/4/13 13:44:27:778 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.cfgss: Adding class library file:/E:/Program Files/IBM/Insight11_LUW/AppServer/profiles/RationalReport/installedApps/svljazz04Node02Cell/IBM Cognos.ear/p2pd.war/WEB-INF/lib/xts.jar
[1/4/13 13:44:27:794 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.cfgss: Adding class library file:/E:/Program Files/IBM/Insight11_LUW/AppServer/profiles/RationalReport/installedApps/svljazz04Node02Cell/IBM Cognos.ear/p2pd.war/WEB-INF/lib/xtsext.jar
[1/4/13 13:44:32:325 PST] 0000000a HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector executeWithRetry I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
[1/4/13 13:44:32:341 PST] 0000000a HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector executeWithRetry Retrying request
[1/4/13 13:44:33:294 PST] 0000000a HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector executeWithRetry I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
[1/4/13 13:44:33:294 PST] 0000000a HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector executeWithRetry Retrying request
[1/4/13 13:44:34:419 PST] 0000000a HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector executeWithRetry I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
[1/4/13 13:44:34:419 PST] 0000000a HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector executeWithRetry Retrying request
[1/4/13 13:44:37:590 PST] 0000000a servlet       I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [IBM Cognos] [/reporting] [cfgss]: Initialization successful.
[1/4/13 13:44:37:606 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.CMServlet: Using class loader in the servlet context:com.cognos.pogo.isolation.ParanoidClassLoader@1c4f1c4f
[1/4/13 13:44:37:622 PST] 0000000a servlet       I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [IBM Cognos] [/reporting] [CMServlet]: Initialization successful.
[1/4/13 13:44:37:637 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.CMRest: Using class loader in the servlet context:com.cognos.pogo.isolation.ParanoidClassLoader@1c4f1c4f
[1/4/13 13:44:37:653 PST] 0000000a servlet       I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [IBM Cognos] [/reporting] [CMRest]: Initialization successful.
[1/4/13 13:44:37:653 PST] 0000000a webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [IBM Cognos#p2pd.war]:.dispatcher: Using class loader in the servlet context:com.cognos.pogo.isolation.ParanoidClassLoader@1c4f1c4f
[1/4/13 13:44:37:778 PST] 0000000a FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on E:\Program Files\IBM\Insight11_LUW\AppServer\profiles\RationalReport\logs\ffdc\RationalReportServer_439a439a_13.01.04_13.44.37.6848929451679307348114.txt com.ibm.ws.webcontainer.servlet.ServletInstance.init 172
[1/4/13 13:44:37:794 PST] 0000000a servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught init() exception created by servlet dispatcher in application IBM Cognos: javax.servlet.ServletException: Cannot load servlet
    at com.cognos.pogo.isolation.ServletWrapper.init(ServletWrapper.java:97)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1807)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1008)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:929)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:608)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:426)
    at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:303)
    at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
    at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
    at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: java.lang.ClassNotFoundException:
    at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:383)
    at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
    at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    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:494)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:494)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    at com.cognos.pogo.isolation.ParanoidClassLoader.findClassParentLast(ParanoidClassLoader.java:141)
    at com.cognos.pogo.isolation.ParanoidClassLoader.loadClass(ParanoidClassLoader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    at com.cognos.pogo.isolation.ServletWrapper.init(ServletWrapper.java:92)
    ... 28 more

[1/4/13 13:44:37:794 PST] 0000000a extension     E com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor createServletWrapper Error occured while preparing the servlet for initialization.
                                 javax.servlet.ServletException: Cannot load servlet
    at com.cognos.pogo.isolation.ServletWrapper.init(ServletWrapper.java:97)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1807)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1008)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:929)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:608)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:426)
    at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:303)
    at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
    at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)



Comments
Michael Walker commented Jan 07 '13, 2:21 a.m.

Does anyone have any advice on how to diagnose this issue?  I tried rebuilding the ear file but the issue still existed.  I've tried installing on 3 different machines and get the same error on each machine, which makes me think it was something installed on those machines that's causing the issue.  I just don't know how to diagnose as the "Cannot load servlet" and "class not found" are the only errors I see.

Accepted answer


permanent link
Ali Manji (59147) | answered Jan 07 '13, 2:11 p.m.
JAZZ DEVELOPER
Hi Michael,

You are correct in your earlier hunch, that the issue is probably somewhere in the install process with IM where for some reason it is not updating this file correctly.

Yes I believe that is correct, rebuild and redeploy.  You'll have to un-deploy the existing ear with the incomplete web.xml or you might hit more problems.
Michael Walker selected this answer as the correct answer

One other answer



permanent link
Ali Manji (59147) | answered Jan 07 '13, 10:13 a.m.
JAZZ DEVELOPER
Hi Michael -

Can you paste in the value of the full <servlet> tag for the entry that has a <servlet-name> value of dispatcher from your web.xml found at <InsightInstallDir>\cognos\webapps\p2pd\WEB-INF

Thanks and regards,
Ali

Comments
Michael Walker commented Jan 07 '13, 1:39 p.m.

Thanks Ali,
Here is what I have:

<servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>com.cognos.pogo.isolation.ServletWrapper</servlet-class>
        <init-param>
            <param-name>com.cognos.pogo.xml.folder</param-name>
<param-value>/WEB-INF/services/</param-value>
        </init-param>
        <init-param>
            <param-name>cafintegration</param-name>
            <param-value>dispatcher</param-value>
        </init-param>
       


Michael Walker commented Jan 07 '13, 1:40 p.m.

</init-param>
        <init-param>
            <param-name>servlet-class</param-name>
            <param-value></param-value>
        </init-param>
        <init-param>
            <param-name>classLoaderName</param-name>
            <param-value>C8sVeryOwnClassLoader</param-value>
        </init-param>
        <load-on-startup>100</load-on-startup>
    </servlet>



Ali Manji commented Jan 07 '13, 1:52 p.m.
JAZZ DEVELOPER

Hi Michael, I have seen this sporadically before, have a look at this Work Item:

https://jazz.net/jazz02/web/projects/Rational%20Insight#action=com.ibm.team.workitem.viewWorkItem&id=75933

If you can reproduce this consistently, perhaps you can add your comments to the WI to share your environment information with the Dev team so they can address it.

Have a look at the WI for details on how to update the web.xml file - you'll have to rebuild and redeploy.

Regards,
Ali


Michael Walker commented Jan 07 '13, 2:07 p.m.

Thanks Ali,

I hit this on all 3 machines and can update the work item. Any idea what causes this?

In order to fix this, do I update the param-value manually based on your work item and then rebuild the ear file?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.