Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4534

Problem with "Double Isolation" configured for webapps

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: JBossAS-4.2.1.GA
    • Fix Version/s: None
    • Component/s: ClassLoading
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Remove the <classloading/> element from the jboss-web.xml

      It shouldn't even really have any effect unless you choose UseJBossWebLoader=true
      in deploy/jbossweb-deployer/META-INF/jboss-service.xml

      Show
      Remove the <classloading/> element from the jboss-web.xml It shouldn't even really have any effect unless you choose UseJBossWebLoader=true in deploy/jbossweb-deployer/META-INF/jboss-service.xml

      Description

      A customer has reported a problem where configuring "double isolation" for web-apps causes problems.

      By "double isolation" I mean JBoss is already configured to provide servlet spec style isolation
      (parent delegation is false), but then the webapp configures it again in jboss-web.xml

      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      xxx:loader=yyy
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
      </class-loading>

      This at least causes problems when initializing a servlet context listener, e.g
      with the Spring context listener

      2007-07-10 12:47:04,078 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/context]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
      java.lang.NoClassDefFoundError: java/util/Set
      at org.springframework.core.io.ClassPathResource.<init>(ClassPathResource.java:95)
      at org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.java:133)
      at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:57)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  adrian.brock Adrian Brock
                  Reporter:
                  adrian.brock Adrian Brock
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: