3 Replies Latest reply on Feb 7, 2004 1:16 AM by juha

    SetContext bug in 3.2.3

      I can host mutiple struts applications on 3.2.1 without conflict, but if I try to place the exact same multiple applications under 3.2.3. I get an error and some wacky results.

      The error is
      2004-02-06 16:17:58,009 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@1b7ae22

      The wacky results are whichever app is loaded first is the only one that exist, the url seams to work but I end up at the first app regardless which url I enter.

        • 1. Re: SetContext bug in 3.2.3

          Have you tried configuring UseJBossWebLoader = false in your jbossweb-tomcat.sar/META-INF/jboss-service.xml file with 3.2.3?

          • 2. Re: SetContext bug in 3.2.3
            starksm64

            The setDelegate warning is irrelevant.

            You either need to disable the extension of the unified class loader down to the war level by setting the UseJBossWebLoader attribute mentioned by Juha, or isolate the war classes from each other by specifying scoped class loading in the war/WEB-INF/jboss-web.xml:

            <jboss-web>
            <class-loading java2ClassLoadingCompliance="false">
            <loader-repository>
            somedomain:war=some.war
            <loader-repository-config>
            java2ParentDelegation=true
            </loader-repository-config>
            </loader-repository>
            </class-loading>
            </jboss-web>


            Why is this post in this forum anyway?

            • 3. Re: SetContext bug in 3.2.3

               

              "starksm" wrote:

              Why is this post in this forum anyway?


              Moved to beginner's.