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

Incorrect war parent class loader used when UseJBossWebLoader=false

    XMLWordPrintable

    Details

      Description

      If the UseJBossWebLoader attribute is set to false in the jbossweb-tomcat55.sar/META-INF/jboss-service.xml and the testsuite jbosstest-web.ear, none of the servlets that depend on classes from the ear jars work because the parent class loader of the war is being set to the jbossweb-tomcat55.sar deployment class loader. The reason is because the context parent class loader is being reset by some context parsing that is using an invalid CopyParentClassLoaderRule as shown by this trace:

      Thread "main"@78 in group "jboss" status: RUNNING
      setParentClassLoader():596, org.apache.catalina.core.ContainerBase
      begin():71, org.apache.catalina.startup.CopyParentClassLoaderRule
      startElement():1275, org.apache.tomcat.util.digester.Digester
      startElement():-1, org.apache.xerces.parsers.AbstractSAXParser
      startElement():-1, org.apache.xerces.impl.dtd.XMLDTDValidator
      scanStartElement():-1, org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
      scanRootElementHook():-1, org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher
      dispatch():-1, org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher
      scanDocument():-1, org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
      parse():-1, org.apache.xerces.parsers.XML11Configuration
      parse():-1, org.apache.xerces.parsers.XML11Configuration
      parse():-1, org.apache.xerces.parsers.XMLParser
      parse():-1, org.apache.xerces.parsers.AbstractSAXParser
      parse():1561, org.apache.tomcat.util.digester.Digester
      processContextConfig():778, org.apache.catalina.startup.ContextConfig
      contextConfig():714, org.apache.catalina.startup.ContextConfig
      init():974, org.apache.catalina.startup.ContextConfig
      lifecycleEvent():273, org.apache.catalina.startup.ContextConfig
      fireLifecycleEvent():119, org.apache.catalina.util.LifecycleSupport
      init():5015, org.apache.catalina.core.StandardContext
      start():3885, org.apache.catalina.core.StandardContext
      addChildInternal():759, org.apache.catalina.core.ContainerBase
      addChild():739, org.apache.catalina.core.ContainerBase
      addChild():524, org.apache.catalina.core.StandardHost
      invoke0():-1, sun.reflect.NativeMethodAccessorImpl
      invoke():39, sun.reflect.NativeMethodAccessorImpl
      invoke():25, sun.reflect.DelegatingMethodAccessorImpl
      invoke():324, java.lang.reflect.Method
      invoke():503, org.apache.commons.modeler.BaseModelMBean
      invoke():150, org.jboss.mx.server.RawDynamicInvoker
      invoke():644, org.jboss.mx.server.MBeanServerImpl
      init():5005, org.apache.catalina.core.StandardContext
      invoke0():-1, sun.reflect.NativeMethodAccessorImpl
      invoke():39, sun.reflect.NativeMethodAccessorImpl
      invoke():25, sun.reflect.DelegatingMethodAccessorImpl
      invoke():324, java.lang.reflect.Method
      invoke():503, org.apache.commons.modeler.BaseModelMBean
      invoke():150, org.jboss.mx.server.RawDynamicInvoker
      invoke():644, org.jboss.mx.server.MBeanServerImpl
      performDeployInternal():276, org.jboss.web.tomcat.tc5.TomcatDeployer
      performDeploy():95, org.jboss.web.tomcat.tc5.TomcatDeployer
      start():366, org.jboss.web.AbstractWebDeployer
      startModule():68, org.jboss.web.WebModule
      startService():46, org.jboss.web.WebModule

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rmaucher Remy Maucherat
                Reporter:
                starksm64 Scott Stark
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: