12 Replies Latest reply on Sep 20, 2010 9:14 AM by ShravanKumar Raju

    Possible redeploy issue

    Daniel Bevenius Master

      Hi,

       

      I've got an issue with redployment of a JBoss ESB service. This service uses a feature in JBoss ESB that creates a web service for the service automatically when the .esb archive is deployed.
      Redploying the .esb archive by touching it or replacing it is not an problem and works just as expected and it  will redeploy cleanly.
      The problem I have is when I specify that the .esb archive depends on another deployment using the jboss-classloading features in JBoss AS 5.1.0.
      The use case I have is that I have two deployments, domain-model-1.0.0.jar and service1-1.0.esb.
      domain-model-1.0.0.jar has a jboss-classloading.xml that looks like this:
      <classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY">
          <capabilities>
              <module name="domain-model" version="${version}"/>
          </capabilities>
      </classloading>
      

       

      service1-1.0.esb has a jboss-classloading.xml that looks like this:

      <classloading xmlns="urn:jboss:classloading:1.0" import-all="true">
          <requirements>
              <module name="domain-model" version="${domain.model.version}"/>
          </requirements>
      </classloading>
      
      When I redploy domain-model-1.0.0.jar I get the following error:
      13:53:34,102 INFO  [TomcatDeployment] undeploy, ctxPath=/service1-1.0
      13:53:34,328 INFO  [QueueService] Queue[/queue/service1-1.0_esb] stopped
      13:53:34,333 INFO  [EsbDeployment] Stopping 'service1-1.0.esb'
      13:53:34,526 INFO  [EsbDeployment] Destroying 'service1-1.0.esb'
      13:53:34,526 WARN  [ServiceMessageCounterLifecycleResource] Calling cleanup on existing service message counters for identity ID-7
      13:53:34,611 INFO  [QueueService] Queue[/queue/service1-1.0_gw] stopped
      13:53:34,638 INFO  [DefaultEndpointRegistry] remove: jboss.ws:context=service1-1.0,endpoint=Sample_Service1-1.0
      13:53:34,644 INFO  [EsbWsdlDeployer] undeploy CL:BaseClassLoader@1b41d4dc{vfszip:/Users/danbev/work/jboss/as/bundles/jboss-5.1.0.GA/server/default/deploy/service1-1.0.esb/}
      13:53:34,657 INFO  [STDOUT] Domain Model [1.0.0] stopped
      13:53:34,725 INFO  [STDOUT] Domain Model [1.0.0] started
      13:53:34,733 WARN  [ESBServiceEndpointInfo] Fault schemas ignored for OneWay service Sample:Service1-1.0
      13:53:34,737 INFO  [EsbWsdlDeployer] Generating wsdl url : vfsmemory://service1-1.0_WSDL/WEB-INF/wsdl/Sample/Service1-1.0.wsdl
      13:53:34,830 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=service1-1.0,endpoint=Sample_Service1-1.0
      13:53:34,839 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/Users/danbev/work/jboss/as/bundles/jboss-5.1.0.GA/server/default/deploy/service1-1.0.esb/ state=PreReal mode=Manual requiredState=Installed
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/Users/danbev/work/jboss/as/bundles/jboss-5.1.0.GA/server/default/deploy/service1-1.0.esb/
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:637)
      Caused by: org.jboss.wsf.spi.deployment.WSFDeploymentException: java.lang.IllegalStateException: BaseClassLoader@1b41d4dc{vfszip:/Users/danbev/work/jboss/as/bundles/jboss-5.1.0.GA/server/default/deploy/service1-1.0.esb/} classLoader is not connected to a domain (probably undeployed?) for class org.jboss.wsf.stack.jbws.EndpointServlet
          at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:52)
          at org.jboss.wsf.container.jboss50.deployment.tomcat.ModifyWebMetaDataDeploymentAspect.create(ModifyWebMetaDataDeploymentAspect.java:52)
          at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
          at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:78)
          at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
          ... 24 more
      Caused by: java.lang.IllegalStateException: BaseClassLoader@1b41d4dc{vfszip:/Users/danbev/work/jboss/as/bundles/jboss-5.1.0.GA/server/default/deploy/service1-1.0.esb/} classLoader is not connected to a domain (probably undeployed?) for class org.jboss.wsf.stack.jbws.EndpointServlet
          at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:793)
          at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
          at org.jboss.wsf.container.jboss50.deployment.tomcat.WebMetaDataModifierImpl.modifyMetaData(WebMetaDataModifierImpl.java:134)
          at org.jboss.wsf.container.jboss50.deployment.tomcat.WebMetaDataModifierImpl.modifyMetaData(WebMetaDataModifierImpl.java:57)
          at org.jboss.wsf.container.jboss50.deployment.tomcat.ModifyWebMetaDataDeploymentAspect.create(ModifyWebMetaDataDeploymentAspect.java:48)
          ... 29 more
      13:53:34,840 INFO  [EsbWsdlDeployer] undeploy CL:BaseClassLoader@7d4a7918{vfszip:/Users/danbev/work/jboss/as/bundles/jboss-5.1.0.GA/server/default/deploy/service1-1.0.esb/}
      

       

      From the exception above it looks like the classloader used by the org.jboss.wsf.spi.deployment.Deployment is using a classloader from the now undeployed deployment. You cannot actually see that from the above but I've stepped through the code and verified that the classloader indeed was the one used by the previous deployment.

      I've looked through some of the code and one thing that I noticed was this section in org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook and its deploy method:

      public void deploy(DeploymentUnit unit) throws DeploymentException
      {
        if (ignoreDeployment(unit))
           return;
       
        if (isWebServiceDeployment(unit))
        {
           log.debug("deploy: " + unit.getName());
           Deployment dep = getDeployment(unit);
           if (dep == null)
           {
              dep = createDeployment(unit);
              dep.addAttachment(DeploymentUnit.class, unit);
           }
       
           unit.addAttachment(Deployment.class, dep);
           getDeploymentAspectManager().deploy(dep);
        }
      }
      

      What I'm seeing is that when the error occurs getDeployment returns a deployment instance and its initialClassLoader will be that of the previous deployment. Later when WebMetaDataModifierImpl gets called it will use the old classloader which you can see is part of the stacktrace above.

       

      One thing that I noticed was that the state of the deployment instance returned from getDeployment is DeploymentState.DESTROYED. I added a check for this and redployment works fine after that:

      if (dep == null || dep.getState() == DeploymentState.DESTROYED)

      I'm not familiar with the code base and I'm not saying this is a solution but perhaps this might give someone a hint of what the issue is and why it is happening.

      I'll attach the use case that I've been using if anyone wants to reproduce this.

       

      Thanks,

       

      /Daniel

        • 1. Re: Possible redeploy issue
          Alessio Soldano Master

          Interesting analysis Daniel, it looks like there's something to be impreved here, would you mind creating a JIRA with this? Thanks!

          • 2. Re: Possible redeploy issue
            Richard Opalka Master

            Application server integration layer changed completely since AS 5.x.

            There were many non trivial refactorings/improvements/fixes in the past.

            Can you reproduce this issue on AS 6.x series before creating JIRA?

            AS 5.x series are not supported anymore in the community.

            • 3. Re: Possible redeploy issue
              Daniel Bevenius Master

              Hi Alessio,

               

              no problem. I created the following Jira: JBAS-8161

              Let me know if there is anything I can do to help.

               

              Thanks!

               

              /Daniel

              • 4. Re: Possible redeploy issue
                Daniel Bevenius Master

                Hi Richard,

                 

                sorry, I had already created the jira before seeing you post:(

                I'll try reproducing this with AS 6.x to see if this still exist there.

                 

                Thanks,

                 

                /Daniel

                • 5. Re: Possible redeploy issue
                  Daniel Bevenius Master

                  I've tried with JBoss_6_0_0_M1 but get the following error:

                   

                  09:48:53,357 INFO  [STDOUT] Domain Model [1.0.0] stopped
                  09:48:53,362 INFO  [TomcatDeployment] undeploy, ctxPath=/service1-1.0
                  09:48:53,367 INFO  [QueueService] Queue[/queue/service1-1.0_esb] stopped
                  09:48:53,369 INFO  [EsbDeployment] Stopping 'service1-1.0.esb'
                  09:48:53,556 INFO  [EsbDeployment] Destroying 'service1-1.0.esb'
                  09:48:53,557 WARN  [ServiceMessageCounterLifecycleResource] Calling cleanup on existing service message counters for identity ID-7
                  09:48:53,594 INFO  [QueueService] Queue[/queue/service1-1.0_gw] stopped
                  09:48:53,604 INFO  [DefaultEndpointRegistry] remove: jboss.ws:context=service1-1.0,endpoint=Sample_Service1-1.0
                  09:48:53,613 INFO  [EsbWsdlDeployer] undeploy CL:BaseClassLoader@210099e7{vfszip:/Users/danbev/work/jboss/as/JBoss_6_0_0_M1/build/output/jboss-6.0.0.M1/server/default/deploy/service1-1.0.esb/}
                  09:48:53,652 WARN  [ESBServiceEndpointInfo] Fault schemas ignored for OneWay service Sample:Service1-1.0
                  09:48:53,657 INFO  [EsbWsdlDeployer] Generating wsdl url : vfsmemory://service1-1.0_WSDL/WEB-INF/wsdl/Sample/Service1-1.0.wsdl
                  09:48:53,705 INFO  [QueueService] Queue[/queue/service1-1.0_gw] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                  09:48:53,711 INFO  [EsbDeployment] Starting ESB Deployment 'service1-1.0.esb'
                  09:48:53,782 INFO  [QueueService] Queue[/queue/service1-1.0_esb] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                  09:48:53,790 INFO  [TomcatDeployment] deploy, ctxPath=/service1-1.0
                  09:48:53,810 ERROR [0]] StandardWrapper.Throwable
                  javax.xml.ws.WebServiceException: Cannot obtain endpoint for: jboss.ws:context=/service1-1.0,endpoint=Sample_Service1-1.0
                  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.initEndpoint(AbstractEndpointServlet.java:155)
                  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.initServiceEndpoint(AbstractEndpointServlet.java:126)
                  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.init(AbstractEndpointServlet.java:74)
                  at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
                  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
                  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4417)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:150)
                  at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
                  at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                  at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                  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:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:207)
                  at $Proxy38.start(Unknown Source)
                  at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                  at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                  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:348)
                  at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:298)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.system.ServiceController.doChange(ServiceController.java:689)
                  at org.jboss.system.ServiceController.start(ServiceController.java:461)
                  at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1448)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1166)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1187)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1107)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:783)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:371)
                  at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:256)
                  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                  at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:637)
                  09:48:53,814 ERROR [0]] Servlet /service1-1.0 threw load() exception
                  javax.xml.ws.WebServiceException: Cannot obtain endpoint for: jboss.ws:context=/service1-1.0,endpoint=Sample_Service1-1.0
                  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.initEndpoint(AbstractEndpointServlet.java:155)
                  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.initServiceEndpoint(AbstractEndpointServlet.java:126)
                  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.init(AbstractEndpointServlet.java:74)
                  at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
                  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
                  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4417)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:150)
                  at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
                  at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                  at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                  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:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:207)
                  at $Proxy38.start(Unknown Source)
                  at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                  at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                  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:348)
                  at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:298)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.system.ServiceController.doChange(ServiceController.java:689)
                  at org.jboss.system.ServiceController.start(ServiceController.java:461)
                  at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1448)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1166)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1187)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1107)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:783)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:371)
                  at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:256)
                  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                  at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:637)
                  09:48:53,868 INFO  [STDOUT] Domain Model [1.0.0] started
                   
                  
                  

                   

                  I'll hook up a debugger and look into this. Just posting here in case you have any suggestions. I'll post back as soon as I know more.

                  Should I try with different version of JBoss AS 6 perhaps?

                   

                  Regards,

                   

                  /Daniel

                  • 6. Re: Possible redeploy issue
                    Daniel Bevenius Master

                    I've tried to use  AS 6.0.0.M3 to test this but needed to fix a few things in the ESB deployers to get them to work with the newer version of JBossMC. But I still have an issue with testing the example that I created since AS 6.0.0.M3 uses Hornetq and I need to see what needs to be done to JBossESB working with Hornetq.

                     

                    Regards,

                     

                    /Daniel

                    • 7. Re: Possible redeploy issue
                      Richard Opalka Master

                      Thanks for update Daniel, I'm waiting for your results.

                      • 8. Re: Possible redeploy issue
                        Daniel Bevenius Master

                        This works nicely on JBoss AS 6.0.0.M3.

                         

                        Our client will not be able to upgrade at the moment but will have to use AS 5.1.0. Do you think using the code change I posted could cause any issues if we decide to use it?

                         

                        Regards,

                         

                        /Daniel

                        • 9. Re: Possible redeploy issue
                          Richard Opalka Master

                          What "code change I posted" you mean?

                          I don't see any patch in https://jira.jboss.org/browse/JBAS-8161

                          • 10. Re: Possible redeploy issue
                            Daniel Bevenius Master

                            You are right, I never posted/attached any code to the jira. I was referring to the first post in this thread.

                            • 11. Re: Possible redeploy issue
                              Richard Opalka Master

                              Aha, already see It. Your patch seems hacky but it could work

                              BTW, I closed the issue because we're fixing JBAS issues only upstream.

                              • 12. Re: Possible redeploy issue
                                ShravanKumar Raju Newbie

                                Hi Daniel,

                                 

                                I have been pointed to this post by google search when searching for the solution existed for my problem. although the problem description looks exactly similar. no clue on how to resolve the problem in jboss-soa-p.5.0.0.

                                 

                                here is my case to reproduce the problem.

                                1. deploy esb-project-1(exploded version) with class-loading as

                                <classloading xmlns="urn:jboss:classloading:1.0"             
                                domain="SAG-CORE"             
                                parent-domain="DefaultDomain"             
                                export-all="NON_EMPTY"             
                                import-all="true">

                                </classloading>

                                2. deploy esb-project-2(exploded version) with class-loading as

                                <classloading xmlns="urn:jboss:classloading:1.0"             
                                domain="ISC-DHCP"             
                                parent-domain="DefaultDomain"             
                                export-all="NON_EMPTY"             
                                import-all="true">
                                </classloading>

                                Here the esb-project-2 deployment is failing with exception trace below. this is happening only when esb-project-1 has WebService deployment

                                with entry in jboss-esb.xml

                                <service category="sagnbi" description="sag web service" name="SAGWSConnector">
                                   <security moduleName="JBossWS" rolesAllowed="provisioning"/>
                                   <listeners>
                                    <jms-listener busidref="sagwsEsbChannel" is-gateway="false"
                                     maxThreads="1" name="esb"/>
                                   </listeners>
                                   <actions faultXsd="/fault.xsd" inXsd="/sagrequest.xsd" mep="OneWay"
                                    outXsd="/sagresponse.xsd" validate="true" webservice="true">
                                    <action class="org.jboss.soa.esb.actions.SystemPrintln" name="RecievedSoapRequest">
                                     <property name="message" value="Message received in SAGWSConnector Service"/>
                                     <property name="printfull" value="false"/>
                                    </action>
                                    <action class="com.mot.sag.nbi.SAGWebService" name="HandleSoapRequest"/>
                                   </actions>
                                  </service>

                                 

                                I would request you to suggest the workable solution for jboss-soa-p.5.0.0.

                                 

                                Regards,

                                -Shravan

                                 

                                2010-09-20 15:50:30,595 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Start: name=jboss.esb.vfsfile:/D:/jboss-soa-p.5.0.0/jboss-as/server/default/deploy/ISCDHCP.esb/ state=Create
                                java.lang.NoClassDefFoundError: com/mot/sag/exception/MPSException
                                    at java.lang.Class.forName0(Native Method)
                                    at java.lang.Class.forName(Class.java:247)
                                    at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:65)
                                    at org.jboss.soa.esb.listeners.config.mappers120.XMLBeansModel.getContractPublisher(XMLBeansModel.java:429)
                                    at org.jboss.soa.esb.listeners.config.mappers120.XMLBeansModel.getServicePublishers(XMLBeansModel.java:404)
                                    at org.jboss.soa.esb.listeners.config.model.Model120SchemaParser$Model120Adapter.getServicePublishers(Model120SchemaParser.java:115)
                                    at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:126)
                                    at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.start(EsbDeployment.java:121)
                                    at sun.reflect.GeneratedMethodAccessor513.invoke(Unknown Source)
                                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                    at java.lang.reflect.Method.invoke(Method.java:597)
                                    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                                    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                                    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
                                    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
                                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
                                    at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                                    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:348)
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
                                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                                    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:371)
                                    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:256)
                                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                                    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                                    at java.lang.Thread.run(Thread.java:619)
                                Caused by: java.lang.ClassNotFoundException: com.mot.sag.exception.MPSException from BaseClassLoader@75c9a2{VFSClassLoaderPolicy@108c69c{name=vfsfile:/D:/jboss-soa-p.5.0.0/jboss-as/server/default/deploy/ISCDHCP.esb/ domain=ClassLoaderDomain@1fac852{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@1d63e39} roots=[MemoryContextHandler@19358903[path= context=vfsmemory://a6g4j30-f5fl33-geb66pcs-1-geb6qpss-jl real=vfsmemory://a6g4j30-f5fl33-geb66pcs-1-geb6qpss-jl], FileHandler@25313245[path=ISCDHCP.esb context=file:/D:/jboss-soa-p.5.0.0/jboss-as/server/default/deploy/ real=file:/D:/jboss-soa-p.5.0.0/jboss-as/server/default/deploy/ISCDHCP.esb/]]  delegates=null exported=[, resources, com.mot.sag.adapter.iscdhcp.connection.beans, com.mot.sag.adapter.iscdhcp, config, com.mot.sag.adapter.iscdhcp.helper, com.mot.sag.adapter.iscdhcp.connection, META-INF] <IMPORT-ALL>NON_EMPTY}}
                                    at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
                                    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
                                    ... 61 more