[jboss-dev-forums] [Design of POJO Server] - Problem deploying a -beans.xml in a SAR

bstansberry@jboss.com do-not-reply at jboss.com
Tue Jan 2 12:59:50 EST 2007


There are problems deploying the tc6 clustering cache on trunk.  It's deployed  via a -beans.xml nested in an expanded .sar. I get errors deploying some of the nested beans in the config as follows; which bean fails seems to vary.

2006-12-31 17:28:44,527 ERROR [org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer] Error during deployment: jboss:id=tc6-cluster.sar,service=jacc
  | org.jboss.deployers.spi.DeploymentException: Error deploying: TomcatClusteringBuddyLocatorConfig
  | 	at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | 	at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:71)
  | 	at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:42)
  | 	at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53)
  | 	at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
  | 	at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
  | 	at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
  | 	at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
  | 	at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
  | 	at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
  | 	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
  | 	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
  | 	at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
  | 	at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403)
  | 	at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342)
  | 	at org.jboss.Main.boot(Main.java:210)
  | 	at org.jboss.Main$1.run(Main.java:508)
  | 	at java.lang.Thread.run()V(Unknown Source)
  | Caused by: java.lang.IllegalStateException: TomcatClusteringBuddyLocatorConfig is already installed.
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:249)
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
  | 	at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:67)
  | 	... 16 more

This may be an odd case due to funky packaging.  The sar looks like this:

tc6-cluster.sar
-- META-INF
-- -- tc6-cluster-beans.xml
-- tc6-cluster.aop

That packaging is a bit of a 4.x legacy and doesn't need to be that way; using a simple directory to logically group the two files is fine, even better:

tc6-cluster
-- tc6-cluster-beans.xml
-- tc6-cluster.aop

When I shift to this packaging, it seems to deploy without issue.  But, the other packaging was working with the Beta1 release, so I want to mention it in case this is a sign of something more fundamental being broken.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997313#3997313

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997313



More information about the jboss-dev-forums mailing list