3 Replies Latest reply on Sep 23, 2010 12:51 PM by jaikiran pai

    JBoss 5.1 multiple "same" ears deploying problems

    Andriy Samulyak Newbie

      Hi all!

       

      I have next problem:

       

      I have 2 EARs that contain jars with same names

      EAR_1

           -- jar1.jar

           -- jar2.jar

       

      EAR_2

           -- jar1.jar

           -- jar2.jar

       

      EARs have different security domains

       

      jboss-app.xml:

       

      <?xml version="1.0"?>
      <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.5//EN"
              "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
      <jboss-app>
          <security-domain>java:/jaas/app-XXXXX</security-domain>
      
          <loader-repository>
              wellcentive.com: loader=app-XXXXX
              <loader-repository-config>
                  java2ParentDelegation=false
              </loader-repository-config>
          </loader-repository>
      
          <module>
              <service>app-ds.xml</service>
          </module>
          <module>
              <service>app-dest-service.xml</service>
          </module>
      </jboss-app>
      

       

      (in second ear XXXXX changed to YYYYY).

       

      Deploying in farm (in cluster)

      When I deploy 1st ear - everything is ok. But whe I start deploying of 2nd ear I receive next error (EARClassLoaderDeployer "isolated" value is set to true):

       

      2010-09-23 14:35:04,419 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/usr/jboss/jboss-5.1.0.GA/server/all/farm/EAR_2.ear/ state=PreReal mode=Manual requiredState=Real 
      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.j2ee:service=EjbModule,module="Jar1.jar" 
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) 
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118) 
      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:171) 
      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.doInstallParentFirst(DeployersImpl.java:1178) 
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210) 
      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:619) 
      Caused by: java.lang.IllegalStateException: jboss.j2ee:module="Jar1.jar",service=EjbModule is already installed. 
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:716) 
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) 
      at org.jboss.system.ServiceController.doInstall(ServiceController.java:670) 
      at org.jboss.system.ServiceController.install(ServiceController.java:273) 
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90) 
      ... 30 more 
      2010-09-23 14:35:04,431 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to process changes 
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): 
       
      *** DEPLOYMENTS IN ERROR: Name -> Error 
       
      vfszip:/usr/jboss/jboss-5.1.0.GA/server/all/farm/EAR_2.ear/ -> org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.j2ee:service=EjbModule,module="Jar1.jar"
       
      DEPLOYMENTS IN ERROR: 
      Deployment "vfszip:/usr/jboss/jboss-5.1.0.GA/server/all/farm/EAR_2.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: jboss.j2ee:module="Jar1.jar",service=EjbModule is already installed. 
       
      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993) 
      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939) 
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873) 
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128) 
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369) 
      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:619)