1 Reply Latest reply on Jul 8, 2007 10:23 AM by Stoil Valchkov

    war classloader

    Stoil Valchkov Newbie

      Hi,

      In our JBoss (4.0.4) configuration we have
      deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml with:

      <attribute name="Java2ClassLoadingCompliance">true</attribute>
      <attribute name="UseJBossWebLoader">true</attribute>
      

      because of some other issues.
      Is it possible to have normal behavior in war (i.e. same like both=false) in such case? I would like to deploy a war with some different versions of libraries like jaxb, commons-*.jar, etc.
      10x
      Stoil

        • 1. Re: war classloader
          Stoil Valchkov Newbie

          It seems that I found a way:

          WEB-INF/jboss-web.xml has to contain:

          <class-loading>
           <loader-repository>
           test:loader=unique-archive-name
           </loader-repository>
           </class-loading>


          However now I have:

          java.lang.NoClassDefFoundError: javax/servlet/ServletConfig
          at com.sun.xml.ws.transport.http.servlet.WSServlet.init(WSServlet.java:44)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


          even if jar is available in lib folder