[jboss-jira] [JBoss JIRA] Commented: (JBAS-5917) Error during deployment means cannot redeploy
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Mon Sep 1 11:15:38 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAS-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12427640#action_12427640 ]
Adrian Brock commented on JBAS-5917:
------------------------------------
I guess the problem is in TomcatDeployment?
Where an error during context.start() does not rollback the context.init()
try
{
// Init the context
context.init();
// Start it
context.start();
// Build the ENC
}
catch(Exception e)
{
DeploymentException.rethrowAsDeploymentException("URL " + warUrl + " deployment failed", e);
}
or other previous registration such as:
Registry.getRegistry().registerComponent(context, objectName, config.getContextClassName());
> Error during deployment means cannot redeploy
> ---------------------------------------------
>
> Key: JBAS-5917
> URL: https://jira.jboss.org/jira/browse/JBAS-5917
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Reporter: Adrian Brock
> Assignee: Remy Maucherat
> Fix For: JBossAS-5.0.0.CR2
>
>
> While writing a test for JBAS-5912 I found a bug in Tomcat deployment.
> Basically, it fails to deploy because the persistence context is "missing":
> Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'test' in AbstractVFSDeploymentContext at 29881315{vfszip:/home/ejort/jboss-head/testsuite/output/lib/test-jpa-weblibs.war}
> at org.jboss.jpa.resolvers.DefaultPersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(DefaultPersistenceUnitDependencyResolver.java:141)
> at org.jboss.web.tomcat.service.TomcatInjectionContainer.resolvePersistenceUnitSupplier(TomcatInjectionContainer.java:652)
> at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:124)
> at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)
> at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:515)
> at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4251)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:354)
> It then becomes impossible to fix because something is not undeployed properly.
> Subsequent redeployments get the message:
> org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL file:/home/ejort/jboss-head/build/output/jboss-5.0.0.CR2/server/default/tmp/deploy/test-jpa-weblibs23565-exp.war/
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:185)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)
> at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list