DeploymentEngine.unDeploy() does not work properly
--------------------------------------------------
Key: AXIS2-390
URL: http://issues.apache.org/jira/browse/AXIS2-390
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Components: deployment
Versions: 0.94
Environment: Windows XP Pro, JBoss
Reporter: Juanda Zeng
Priority: Minor
When trying to perform "hotupdate" on a service, the deployment module did not
undeploy the service properly. The service was not removed from the axisConfig
object. This resulted in an error when it is trying to re-deploy the same
service afterwards. I have only tested this with "directory" type of service
instead of .aar.
SUGGESTED RESOLUTION:
----------------------------------------
It appears that we need to add:
axisConfig.removeService(serviceName);
after the following chunk of code in
org.apache.axis2.deployment.DeploymentEngine (after line 636 in rev. 367538):
public void unDeploy() {
String serviceName = "";
try {
if (wsToUnDeploy.size() > 0) {
for (int i = 0; i < wsToUnDeploy.size(); i++) {
WSInfo wsInfo = (WSInfo) wsToUnDeploy.get(i);
if (wsInfo.getType() == TYPE_SERVICE) {
serviceName = getAxisServiceName(wsInfo.getFileName());
axisConfig.removeService(serviceName); // <-- JZ:
Undeploy the service from Axis config
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira