13 Replies Latest reply on Mar 18, 2011 2:05 PM by mreynolds0404

    JBoss6 Classloading Jar Search Order

    mreynolds0404 Newbie

      We are migrating a web application from JBoss 4.2.3 to JBoss 6. The application needs to control the order in which jars are searched for classes during classloading. This was achieved in JBoss 4.2.3 by hacking EARDeployer class in jboss.jar to add jars to the DeploymentInfo object in a specific order.

      Is there a way to achieve the same result in JBoss 6?

        • 2. JBoss6 Classloading Jar Search Order
          mreynolds0404 Newbie

          Thanks, Ales.  Is there any further documentation on how to configure jboss-structure.xml?

          • 3. JBoss6 Classloading Jar Search Order
            Ales Justin Master

            Is there any further documentation on how to configure jboss-structure.xml?

            Not really.

            But should be simple enough -- the elements are quite natural to what you would expect as a structure description.

            Otoh, you're welcome to create such more detailed wiki, describing your learning curve. :-)

            • 5. Re: JBoss6 Classloading Jar Search Order
              mreynolds0404 Newbie

              Hehe.  Well, if I can get my app deploying correctly, I would be happy to write a wiki on the subject.  I created a jboss-structure file and am having an issue where my war instead of my ear is not deploying.  Below is my structure file.  Anything look off?

               

              <structure>

                <context>

                  <path name="" />

                  <metaDataPath>

                    <path name="META-INF" />

                  </metaDataPath>

                  <classpath>

                    <path name="/lib/top_of_the_heap.jar"/>

                    <path name="/lib/next_in_line.jar"/>

                    <path name="/lib/third_place.jar"/>

                    <path name="/lib" suffixes=".jar"/>

                  </classpath>

                </context>

                <context>

                  <path name="troublesome.war" />

                  <metaDataPath>

                    <path name="META-INF" />

                  </metaDataPath>

                  <classpath>

                    <path name="/lib" suffixes=".jar"/>

                  </classpath>

                </context>

              </structure>

              • 6. Re: JBoss6 Classloading Jar Search Order
                Ales Justin Master
                      <path name="/lib" suffixes=".jar"/>

                This looks wrong for .war, it should be WEB-INF/lib.

                • 7. Re: JBoss6 Classloading Jar Search Order
                  mreynolds0404 Newbie

                  Thanks for that catch, Ales.  I made the fix, but I still have the same behavior.  In the JBoss console I get the usual line that marks the start of deployment of my war ([TomcatDeployment] deploy, ctxPath=/troublesome), but then nothing happens, and JBoss just logs the "Started in" time.  The admin console shows the war as deployed but navigating to it page yields no result.  Any ideas?

                   

                  I should note, that without the jboss-structure file, my application deploys normally and successfully.

                  • 8. Re: JBoss6 Classloading Jar Search Order
                    Ales Justin Master
                        <path name="troublesome.war" />

                        <metaDataPath>

                          <path name="META-INF" />

                    This is also wrong for .war --> WEB-INF is the metadata location for .wars. ;-)

                    • 9. Re: JBoss6 Classloading Jar Search Order
                      mreynolds0404 Newbie

                      Gah, you are right, I appologize for the newbie mistakes.  Another detail that will not doubt be relevent is that there are no classes or libraries in the war itself.  It's classes and libraries are in the lib directory of the parent ear.  Should the classpath for the war context in jboss-structure be something like this then:

                       

                          <classpath>

                            <path name="../lib" suffixes=".jar"/>

                          </classpath>

                      • 10. Re: JBoss6 Classloading Jar Search Order
                        Ales Justin Master
                        Should the classpath for the war context in jboss-structure be something like this then:

                         

                            <classpath>

                              <path name="../lib" suffixes=".jar"/>

                            </classpath>

                        No, .war will get .ear's classpath anyway.

                        If you don't have any we classes, then you don't need any classpath for .war.

                        • 11. Re: JBoss6 Classloading Jar Search Order
                          mreynolds0404 Newbie

                          Ok.  Here is my current and hopefully correct jboss-structure.xml:

                           

                          <structure>

                            <context>

                              <path name="" />

                              <metaDataPath>

                                <path name="META-INF" />

                              </metaDataPath>

                              <classpath>

                                <path name="/lib/first.jar"/>

                                <path name="/lib/second.jar"/>

                                <path name="/lib/third.jar"/>

                                <path name="/lib" suffixes=".jar"/>

                              </classpath>

                            </context>

                            <context>

                              <path name="troublesome.war" />

                              <metaDataPath>

                                <path name="WEB-INF" />

                              </metaDataPath>

                            </context>

                          </structure>

                           

                          Unfortunately, with this in place I am having deployment errors.  Here is the exception that causes the failure:

                           

                          16:56:28,936 ERROR [[/context_name_erased]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.NullPointerException

                                    at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:118) [:2.2.0.GA]

                                    at org.jboss.seam.init.Initialization.init(Initialization.java:740) [:2.2.0.GA]

                                    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [:2.2.0.GA]

                                    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.0.0.Final]

                                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.0.0.Final]

                                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]

                                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]

                                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]

                                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]

                                    at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]

                                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_18]

                                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_18]

                                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_18]

                                    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_18]

                                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

                                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

                                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

                                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

                                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

                                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]

                                    at $Proxy41.start(Unknown Source)          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]

                                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]

                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]

                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]

                                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

                                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

                                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

                                    at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

                                    at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

                                    at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

                                    at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

                                    at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

                                    at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

                                    at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_18]

                           

                           

                          In addition to this, my application log has many errors similar to this (the first one):

                          2011-03-17 16:54:42,717 [Thread-2] WARN  [org.jboss.seam.deployment.URLScanner] could not read entries

                          java.io.FileNotFoundException: C:\dev\web\jboss-6.0.0.Final\server\default\deploy\app-4.5.0-SNAPSHOT.ear\lib\jboss-seam-excel-2.2.0.GA.jar (The system cannot find the path specified)

                                    at java.util.zip.ZipFile.open(Native Method)

                                    at java.util.zip.ZipFile.<init>(ZipFile.java:114)

                                    at java.util.zip.ZipFile.<init>(ZipFile.java:131)

                                    at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)

                                    at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)

                                    at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)

                                    at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113)

                                    at org.jboss.seam.init.Initialization.create(Initialization.java:132)

                                    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)

                                    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369)

                                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828)

                                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294)

                                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)

                                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477)

                                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                                    at org.jboss.web.deployers.WebModule.start(WebModule.java:95)

                                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                    at java.lang.reflect.Method.invoke(Method.java:597)

                                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)

                                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)

                                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                                    at $Proxy41.start(Unknown Source)

                                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)

                                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)

                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)

                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182)

                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58)

                                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

                                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

                                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

                                    at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)

                                    at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)

                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

                                    at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)

                                    at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)

                                    at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)

                                    at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)

                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112)

                                    at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87)

                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91)

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132)

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)

                                    at java.lang.Thread.run(Thread.java:619)


                          Not sure if this is a Seam issue or a JBoss issue.

                          • 12. Re: JBoss6 Classloading Jar Search Order
                            Ales Justin Master

                            Hmm, for some reason VFS based Scanner is not kicking in.

                            --> at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)

                             

                            Seam deployer should recognize your deployment as Seam app,

                            and add VFSScanner automatically.

                            No idea why this is not kicking in.

                            • 13. Re: JBoss6 Classloading Jar Search Order
                              mreynolds0404 Newbie

                              So it looks like we were able to get past this issue by following the instructions here: http://itdevworld.wordpress.com/2009/09/06/seam-on-jboss-5-x-without-seam-deployer/

                               

                              The only additional step we took not documented in the link was setting the war's classloading to parent-first=false.  We are testing, though, to see if that matters.