Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2
-
Security Level: public (Regular issues)
-
None
-
Windows XP, but should be valid for all platforms
-
Patch Available
Description
This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
The exception trace is :
00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
java.lang.IllegalArgumentException: Invalid id: sampleHello
at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
9)
at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
Time(DirectoryHotDeployer.java:216)
at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
oryMonitor.java:233)
at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
tor.java:206)
at java.lang.Thread.run(Thread.java:534)
00:54:47,014 INFO [DirectoryHotDeployer] Deploying sampleHello
00:54:51,350 WARN [TomcatModuleBuilder] Web application . does not contain a WE
B-INF/geronimo-web.xml deployment plan. This may or may not be a problem, depen
ding on whether you have things like resource references that need to be resolve
d. You can also give the deployer a separate deployment plan file on the comman
d line.
00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war
java.lang.RuntimeException: java.lang.NullPointerException
at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
ner.java:339)
at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
3.invoke(<generated>)
... 31 more
00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
java.lang.IllegalArgumentException: addChild: Child name '/sampleHello' is not
unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n default/sampleHello/1163964291070/war failed to start due to the following rea
sons:
The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war did not start because the doStart method threw an exception.
java.lang.IllegalArgumentException: addChild: Child name '/sampleHello' is not
unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)
Steps to recreate:
1. Start server
2. Deploy sample application, by placing sampleApp folder in deploy directory
3. Application will be deployed and runs fine.
4. Restart server, or restart hot-deploy module
5. The above mentioned exception is thrown.
Attachments
Attachments
Issue Links
- blocks
-
GERONIMO-1431 Make deploy tool and hot deploy directory work better together
- Resolved
- depends upon
-
GERONIMO-2402 Redeployment fails after third iteration.
- Closed
- duplicates
-
GERONIMO-2522 Hot deployer makes app hangs
- Closed
- is duplicated by
-
GERONIMO-1982 server try to deploy the modules in hot deployment directory again during server startup
- Closed