You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2011/01/25 06:21:09 UTC
svn commit: r1063144 -
/geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Author: genspring
Date: Tue Jan 25 05:21:09 2011
New Revision: 1063144
URL: http://svn.apache.org/viewvc?rev=1063144&view=rev
Log:
GERONIMO-5283 Server restart fails after a hard stop
Modified:
geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Modified: geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java?rev=1063144&r1=1063143&r2=1063144&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java (original)
+++ geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java Tue Jan 25 05:21:09 2011
@@ -62,6 +62,7 @@ import org.apache.geronimo.system.config
import org.apache.geronimo.system.configuration.condition.ParserUtils;
import org.apache.geronimo.system.plugin.model.AttributesType;
import org.apache.geronimo.system.plugin.model.GbeanType;
+import org.apache.geronimo.system.plugin.model.ModuleType;
import org.apache.geronimo.system.serverinfo.ServerInfo;
import org.xml.sax.SAXException;
import org.osgi.framework.Bundle;
@@ -438,6 +439,15 @@ public class LocalAttributeManager imple
static void write(ServerOverride serverOverride, Writer writer) throws XMLStreamException, JAXBException, IOException {
AttributesType attributes = serverOverride.writeXml();
+
+ // we don't need to write wab configuration to config.xml
+ for (Iterator<ModuleType> it = attributes.getModule().iterator(); it.hasNext();) {
+ ModuleType module = it.next();
+ if (module.getName().endsWith("wab")) {
+ it.remove();
+ }
+ }
+
AttributesXmlUtil.writeAttributes(attributes, writer);
writer.flush();
}