[jboss-jira] [JBoss JIRA] (AS7-5495) DuplicateServiceException when redeploying a rar multiple times
Flavia Rainone (JIRA)
jira-events at lists.jboss.org
Wed Sep 5 12:02:33 EDT 2012
Flavia Rainone created AS7-5495:
-----------------------------------
Summary: DuplicateServiceException when redeploying a rar multiple times
Key: AS7-5495
URL: https://issues.jboss.org/browse/AS7-5495
Project: Application Server 7
Issue Type: Bug
Reporter: Flavia Rainone
Assignee: Flavia Rainone
Fix For: 7.2.0.Alpha1
Start up a JBoss AS instance and run org.jboss.as.test.smoke.deployment.rar.tests.redeployment.ReDeploymentTestCase twice. At the second time the test runs, it will fail with a DuplicateServiceException.
The cause of this failure is in ResourceAdapterService, that does not remove itself from the resource adapters service list on stop. Notice that the same service adds itself to that list on start.
So, when a new rar is deployed, that list is reread and the resource adapter service gets redeployed along with the service being deployed. If the service being deployed is the same as before, we will get a duplicate deployment of the same components, resulting in a DuplicateServiceException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list