Problem
I recently deployed my ATG application EAR onto my JBoss and started by JBoss Server. The server started but it threw the following exception almost at the end of the startup
PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi. DeploymentException: Error deploying: jboss.web.deployment:war=/dyn
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:55)
at org.jboss.deployers.plugins. deployers.DeployerWrapper. deploy(DeployerWrapper.java: 179)
at org.jboss.deployers.plugins. deployers.DeployersImpl. doDeploy(DeployersImpl.java: 1454)
at org.jboss.deployers.plugins. deployers.DeployersImpl. doInstallParentFirst( DeployersImpl.java:1172)
at org.jboss.deployers.plugins. deployers.DeployersImpl. doInstallParentFirst( DeployersImpl.java:1193)
at org.jboss.deployers.plugins. deployers.DeployersImpl. doInstallParentFirst( DeployersImpl.java:1225)
at org.jboss.deployers.plugins. deployers.DeployersImpl. install(DeployersImpl.java: 1113)
at org.jboss.dependency.plugins. AbstractControllerContext. install( AbstractControllerContext. java:348)
at org.jboss.dependency.plugins. AbstractController.install( AbstractController.java:1652)
at org.jboss.dependency.plugins. AbstractController. incrementState( AbstractController.java:938)
at org.jboss.dependency.plugins. AbstractController. resolveContexts( AbstractController.java:1082)
at org.jboss.dependency.plugins. AbstractController. resolveContexts( AbstractController.java:988)
at org.jboss.dependency.plugins. AbstractController.change( AbstractController.java:826)
at org.jboss.dependency.plugins. AbstractController.change( AbstractController.java:556)
at org.jboss.deployers.plugins. deployers.DeployersImpl. process(DeployersImpl.java: 789)
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.repository. ProfileDeployAction.install( ProfileDeployAction.java:70)
at org.jboss.system.server. profileservice.repository. AbstractProfileAction.install( AbstractProfileAction.java:53)
at org.jboss.system.server. profileservice.repository. AbstractProfileService. install( AbstractProfileService.java: 403)
at org.jboss.dependency.plugins. AbstractControllerContext. install( AbstractControllerContext. java:348)
at org.jboss.dependency.plugins. AbstractController.install( AbstractController.java:1652)
at org.jboss.dependency.plugins. AbstractController. incrementState( AbstractController.java:938)
at org.jboss.dependency.plugins. AbstractController. resolveContexts( AbstractController.java:1082)
at org.jboss.dependency.plugins. AbstractController. resolveContexts( AbstractController.java:988)
at org.jboss.dependency.plugins. AbstractController.install( AbstractController.java:778)
at org.jboss.dependency.plugins. AbstractController.install( AbstractController.java:543)
at org.jboss.system.server. profileservice.repository. AbstractProfileService. registerProfile( AbstractProfileService.java: 308)
at org.jboss.system.server. profileservice. ProfileServiceBootstrap.start( ProfileServiceBootstrap.java: 256)
at org.jboss.bootstrap. AbstractServerImpl.start( AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java: 221)
at org.jboss.Main$1.run(Main. java:556)
at java.lang.Thread.run(Thread. java:662)
Caused by: java.lang. IllegalStateException: jboss.web.deployment:war=/dyn is already installed.
at org.jboss.dependency.plugins. AbstractController.install( AbstractController.java:719)
at org.jboss.dependency.plugins. AbstractController.install( AbstractController.java:543)
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)
... 35 more
15:32:00,629 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@462d62d9[domain= default, server=default, name=Admin]
15:32:00,632
ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "vfsfile:/C:/jboss-eap- 5.1/jboss-as/server/Admin/ deploy/Live.ear/" is in error due to the following reason(s): java.lang.IllegalStateEx
ception: jboss.web.deployment:war=/dyn is already installed.
Solution
After a quick analysis I found that the above error was thrown when I had two ATG EARs inside my jboss server's deploy folder. Its always advisable to build all necessary modules into a single ATG EAR and deploy it onto to the application server. I removed the old unwanted EAR and the error vanished.The above error was caused because both my ATG EARs were built with DafEar.Admin which adds the dyn content. Having two EARs could also cause other issues, so watchout.
Thanks man.
ReplyDeleteThank you, that was our problem!
ReplyDeleteThanks..
ReplyDeletethanks a lot
ReplyDelete