[jboss-user] [Installation, Configuration & DEPLOYMENT] - DeploymentException
lovelyliatroim
do-not-reply at jboss.com
Tue Jan 15 09:14:03 EST 2008
Hi Folks,
Im currently using JBoss AS 5.0 Beta3 and Im having a bit of a problem.
I have an ear file and inside the ear file i have a jar file. Inside the jar file in the meta-inf directory i have 2 service descriptor files.(Now maybe you cant do this but i would assume you can). Now when it comes to deployment i get the following exception
| 15:04:00,052 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/cmds.ear/ state=Not Installed mode=Manual requiredState=Parse
| org.jboss.deployers.spi.DeploymentException: Only one file is allowed, found=[FileHandler at 20948677[path=cmds.ear/cmds-cache.jar/META-INF/cmdsNonPersistentCache-service.xml context=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/ real=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/cmds.ear/cmds-cache.jar/META-INF/cmdsNonPersistentCache-service.xml], FileHandler at 31313958[path=cmds.ear/cmds-cache.jar/META-INF/cmdsPersistentCache-service.xml context=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/ real=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/cmds.ear/cmds-cache.jar/META-INF/cmdsPersistentCache-service.xml]]
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:108)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:225)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
|
Now it obviously doesnt like 2 service files inside this directory. My question is then is how do i package and deploy my services then?? The 2 services i have are for JBoss Cache, one for a persistent cache and the other not. I would like to keep them packaged together if possible, any work around??
I also seen this http://jira.jboss.org/jira/browse/JBMICROCONT-184 , maybe its related??.
Cheers,
LL
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120098#4120098
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120098
More information about the jboss-user
mailing list