EAR modules not available to WAR - Websphere

This is a discussion on EAR modules not available to WAR - Websphere ; Hi, We are facing a problem with classloader on WAS 6.1. the application consists of a war module, 3 common jar modules. the above 4 components are packaged into an EAR. Strangely when the application starts up the jars are ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: EAR modules not available to WAR

  1. EAR modules not available to WAR

    Hi,

    We are facing a problem with classloader on WAS 6.1.
    the application consists of a war module, 3 common jar modules.
    the above 4 components are packaged into an EAR. Strangely when the application starts up the jars are not available to the war.The web.xml in war refers to a servlet class in the jar which is to be loaded on server startup. we have added the jars to manifest.mf of the webApp(war) but still getting the same error.
    ================================================
    following is the ear structure
    ------------------------------
    sampleApp.ear
    |
    |-app1.war
    |--common1.jar
    |---common2.jar
    =================================================
    entry in app1.war/META-INF/MANIFEST.MF is as follows:
    --------------------------------
    Manifest-Version: 1.0
    Class-Path: common1.jar
    common2.jar
    ===============================================
    the exception stack trace is as follows:
    ----------------------------------------
    [7/8/09 14:17:33:549 EDT] 00000018 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\lo gs\ffdc\server1_58f658f6_09.07.08_14.17.33_0.txt
    [7/8/09 14:17:33:580 EDT] 00000018 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\lo gs\ffdc\server1_58f658f6_09.07.08_14.17.33_0.txt
    [7/8/09 14:17:33:580 EDT] 00000018 ServletWrappe E [Servlet Error]-[com.bofasecurities.backoffice.ats.servlet.WSDBConn ectionServlet]: java.lang.ClassNotFoundException: com.bofasecurities.backoffice.ats.servlet.WSDBConn ectionServlet
    at com.ibm.ws.classloader.CompoundClassLoader.findCla ss(CompoundClassLoader.java:472)
    at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:373)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:5 61)
    at java.beans.Beans.instantiate(Beans.java:202)
    at java.beans.Beans.instantiate(Beans.java:63)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.r un(ServletWrapper.java:1195)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:118)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.loa dServlet(ServletWrapper.java:1190)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.l oadServlet(ServletWrapper.java:385)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ini tialize(ServletWrapper.java:1112)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.i nitialize(ServletWrapper.java:149)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionP rocessor.createServletWrapper(WebExtensionProcesso r.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWr apper(WebApp.java:741)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTa rgetMappings(WebApp.java:421)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:274)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize (WebApp.java:271)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebAp plication(WebGroup.java:88)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplic ation(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(W ebContainer.java:653)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebAppli cation(WebContainer.java:606)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:333)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:549)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1295)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1129)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:567)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:814)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:948)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$Ap pInitializer.run(ApplicationMgrImpl.java:2114)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.run(WsComponentImpl.java:340)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1498)

    [7/8/09 14:17:33:580 EDT] 00000018 WebExtensionP W Servlet WSDBConnectionServlet is currently unavailable: SRVE0200E: Servlet [com.bofasecurities.backoffice.ats.servlet.WSDBConn ectionServlet]: Could not find required class - com.bofasecurities.backoffice.ats.servlet.WSDBConn ectionServlet

    ===============================================
    please find attached the incident stream file too.
    ----------------------------------------------------

    Thanks
    sndptnk

  2. Re: EAR modules not available to WAR

    forgot to mention,
    the classloader policy is "Multiple"
    and the class loading mode is "Parent first"

+ Reply to Thread