geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-3544) Offline deployer busted when adding sharedlib reference into offline-deployer-config.xml
Date Tue, 23 Oct 2007 12:39:50 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536983
] 

Vamsavardhana Reddy commented on GERONIMO-3544:
-----------------------------------------------

Step 2 from the solution suggested in previous comment did not work :(.  It resulted in the
following exception.

18:03:46,703 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=Deployer,name=Deployer"
java.lang.IllegalStateException: More than one Configuration Manager was found in the kernel:
"org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
"org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"

	at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManagerName(ConfigurationUtil.java:307)
	at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:320)
	at org.apache.geronimo.deployment.Deployer.getArtifactResolver(Deployer.java:82)
	at org.apache.geronimo.deployment.Deployer.<init>(Deployer.java:78)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>)
	at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
	at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
	at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102)
	at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90)
	at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)
	at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
	at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
18:03:47,218 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=ConfigBuilder,name=ServiceBuilder"
java.lang.IllegalStateException: More than one Configuration Manager was found in the kernel:
"org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
"org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"

	at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManagerName(ConfigurationUtil.java:307)
	at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:320)
	at org.apache.geronimo.deployment.service.ServiceConfigBuilder.<init>(ServiceConfigBuilder.java:81)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>)
	at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
	at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
	at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102)
	at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90)
	at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)
	at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
	at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
    Error: Unexpected error. Cannot start offline-deployer
org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car
failed
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:547)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>)
	at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
	at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
	at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102)
	at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90)
	at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)
	at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
	at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:514)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
	... 18 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car
failed to start due to the following reasons:
  The service ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=Deployer,name=Deployer
did not start because More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
"org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"

  The service ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=ConfigBuilder,name=ServiceBuilder
did not start because More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
"org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"


	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:477)
	... 20 more


> Offline deployer busted when adding sharedlib reference into offline-deployer-config.xml
> ----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3544
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3544
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
>            Reporter: Aman Nanner
>            Assignee: Vamsavardhana Reddy
>             Fix For: 2.0.x, 2.1
>
>         Attachments: offline-deployer-bug.zip
>
>
> For EAR applications that have references shared libraries and depend upon the sharedlib
config, the offline-deployer-config.xml needs to be modified to add the following line:
> <module name="org.apache.geronimo.configs/sharedlib/2.0.2/car"/>
> This allows for the EAR application to be deployed offline.  If this line were not to
be added, the offline deployment would fail.
> This was working in Geronimo 2.0.1.  As of Geronimo 2.0.2, it seems that adding this
line causes the offline deployment process to hang with the following error:
> ----
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:138)
>         at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:114)
>         at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:161)
>         at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
>         at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
>         at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
> Deployer operation failed: Module Apache/TestingJMS/1/rar already exists in the server.
 Try to undeploy it first or use
>  the redeploy command.
> org.apache.geronimo.common.DeploymentException: Module Apache/TestingJMS/1/rar already
exists in the server.  Try to und
> eploy it first or use the redeploy command.
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
>         at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
>         at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
>         at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
>         at java.lang.Thread.run(Thread.java:595)
>     Completed with id Apache/TestingJMS/1/rar
> ----
> Checking the repository and the config.xml shows that the deployment actually succeeds,
but then the process hangs with the "already deployed" error above.  This error is strange
because the specified resource was NOT already deployed.
> I've attached a very simple test case that can reproduce the error.
> 1) Unzip the contents into your top-level Geronimo folder
> 2) Modify the offline-deployer-config.xml to add the "<module name="org.apache.geronimo.configs/sharedlib/2.0.2/car"/>"
configuration.
> 3) Execute offline deployment with the following command:
> java -jar bin\deployer.jar --user system --password manager --offline deploy geronimo-activemq-ra-2.0.2.rar
jms-dest.xml
> This should reproduce the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message