[ 
https://issues.apache.org/jira/browse/GERONIMO-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

YunFeng Ma updated GERONIMO-3231:
---------------------------------

    Attachment: GERONIMO-3231.patch

Tested on windows using hello sample.

> Hot deployment error when restart server
> ----------------------------------------
>
>                 Key: GERONIMO-3231
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3231
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.0-M6
>            Reporter: YunFeng Ma
>             Fix For: 2.0-M7
>
>         Attachments: GERONIMO-3231.patch
>
>
> Copy hello-2.0-SNAPSHOT.war to geronimo_home/deploy directory at the server 
> started, hello is hot deployed successfully, Stop the server now.
> Start the server again with hello-2.0-SNAPSHOT.war under 
> geronimo_home/deploy, "Unable to deploy" error come up on the console, and 
> under geronimo_home/deploy, hello-2.0-SNAPSHOT.war is also missing.
>   
>   errors see below:
> 15:28:36,580 ERROR [DirectoryHotDeployer] Unable to deploy: Module 
> samples/hello/2.0/war already exists in the server.  Try to undeploy it first 
> or use the redeploy command.
> org.apache.geronimo.common.DeploymentException: Module samples/hello/2.0/war 
> already exists in the server.  Try to undeploy it first or use the redeploy 
> command.
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
>         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:127)
>         at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:863)
>         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)
> 15:28:40,989 ERROR [DirectoryHotDeployer] Unable to undeploy
> java.lang.NullPointerException
>         at 
> org.apache.geronimo.deployment.plugin.ConfigIDExtractor.identifyTargetModuleIDs(ConfigIDExtractor.java:174)
>         at 
> org.apache.geronimo.deployment.hot.DirectoryHotDeployer.fileRemoved(DirectoryHotDeployer.java:350)
>         at 
> org.apache.geronimo.deployment.hot.DirectoryMonitor.scanDirectory(DirectoryMonitor.java:325)
>         at 
> org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java:216)
>         at java.lang.Thread.run(Thread.java:595)

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

Reply via email to