[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Re: Dynamically reordering of deployers

scott.stark@jboss.org do-not-reply at jboss.com
Thu Nov 2 14:16:14 EST 2006


In testing out the change where the JBossWebAppParsingDeployer orders itself relative to the WebAppParsingDeployer, I see that the jbossws layer is installer a KernelLocator:


  | 11:04:13,653 INFO  [ServiceEndpointManager] WebServices: jbossws-2.0.0.CR1 (date=200610271913)
  | 11:04:13,698 ERROR [BeanMetaDataDeployer] Error during deployment: KernelLocatororg.jboss.deployers.spi.DeploymentException: Error deploying: KernelLocator
  |         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.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:401)
  |         at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
  |         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: KernelLocator is already installed.
  |         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:249)
  | 
  | 

As a general rule we need to be scoping the bean names to the context adding the beans as we should not have beans that are implementation details of a context clashing with the bean names from other contexts.


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

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



More information about the jboss-dev-forums mailing list