geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Kashyap" <goyathlay.geron...@gmail.com>
Subject Exceptions during deployment of testsupport EARs
Date Fri, 09 Feb 2007 02:17:21 GMT
The deployment-testsuite/test-deployments deploys the following 2 ears
in succession, hits the context-root URL in a browser and then
undeploys it again.

org.apache.geronimo.testsupport/test-ear-j2ee_1.3/2.0-SNAPSHOT/ear
org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear

This used to work fine until recently. Now the ear that deploys second
throws the following exception (seen during testrun)

[WARNING] Caused by:
org.apache.geronimo.kernel.config.InvalidConfigException:
org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean already
registered: geronimo:J2EEServer=geronimo,name=cmp,j2eeType=GBean
[WARNING] 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:366)
[WARNING] 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
[WARNING] 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
[WARNING] 	... 35 more
[WARNING] Caused by:
org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean already
registered: geronimo:J2EEServer=geronimo,name=cmp,j2eeType=GBean
[WARNING] 	at org.apache.geronimo.kernel.basic.BasicRegistry.register(BasicRegistry.java:88)
[WARNING] 	at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:355)
[WARNING] 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:363)
[WARNING] 	... 37 more


Is this something that the conversion tool is doing ?

When the same 2 ears are deployed from CLI using the deploy tool, a
much misleading exception like the following gets thrown:

   Caused by:
    org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException:
    Configuration already exists:
    org.apache.geronimo.testsupport/test-ear-j2ee_1.3/2.0-SNAPSHOT/ear
    at    org.apache.geronimo.system.configuration.RepositoryConfigurationStore.createNewConfigurationDir(RepositoryConfigurationStore.java:177)
    at    org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:470)

Cheers
Prasad

Mime
View raw message