geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r469925 - /geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
Date Wed, 01 Nov 2006 15:02:25 GMT
Author: sppatel
Date: Wed Nov  1 07:02:24 2006
New Revision: 469925

URL: http://svn.apache.org/viewvc?view=rev&rev=469925
Log:
If an offline undeploy, need to load the config first, so that stopConfiguration() can resolve
the config successfully in order to set load=false in attribute manager, otherwise starting
server will fail attempting to start nonexistant config

Modified:
    geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java

Modified: geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java?view=diff&rev=469925&r1=469924&r2=469925
==============================================================================
--- geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
(original)
+++ geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
Wed Nov  1 07:02:24 2006
@@ -51,6 +51,13 @@
 
                     Artifact moduleID = Artifact.create(module.getModuleID());
                     try {
+                    	if(!configurationManager.isOnline()) {
+                    		//If an offline undeploy, need to load the configuration first, so
that stopConfiguration()
+                    		//can resolve the configuration and successfully set load=false in
attribute manager, otherwise
+                    		//starting the server will fail attempting to start an config that
does not exist.
+                    		configurationManager.loadConfiguration(moduleID);
+                    	}
+                    	
                         configurationManager.stopConfiguration(moduleID);
 
 



Mime
View raw message