geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r239478 - in /geronimo/trunk/modules: jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java
Date Tue, 23 Aug 2005 23:07:17 GMT
Author: djencks
Date: Tue Aug 23 16:07:13 2005
New Revision: 239478

URL: http://svn.apache.org/viewcvs?rev=239478&view=rev
Log:
work around xmlbeans peculiarity

Modified:
    geronimo/trunk/modules/jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java
    geronimo/trunk/modules/tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java

Modified: geronimo/trunk/modules/jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java?rev=239478&r1=239477&r2=239478&view=diff
==============================================================================
--- geronimo/trunk/modules/jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java
(original)
+++ geronimo/trunk/modules/jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java
Tue Aug 23 16:07:13 2005
@@ -471,7 +471,7 @@
                     throw new DeploymentException("More than one jetty configuration element:
" + anys);
                 }
                 if (anys.length == 1) {
-                    GerJettyConfigType jettyConfigType = (GerJettyConfigType)anys[0].changeType(GerJettyConfigType.type);
+                    GerJettyConfigType jettyConfigType = (GerJettyConfigType)anys[0].copy().changeType(GerJettyConfigType.type);
                     String[] hosts = jettyConfigType.getVirtualHostArray();
                     for (int i = 0; i < hosts.length; i++) {
                         hosts[i] = hosts[i].trim();

Modified: geronimo/trunk/modules/tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java?rev=239478&r1=239477&r2=239478&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java
(original)
+++ geronimo/trunk/modules/tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java
Tue Aug 23 16:07:13 2005
@@ -401,7 +401,7 @@
                     throw new DeploymentException("More than one tomcat config: " + anys);
                 }
                 if (anys.length == 1) {
-                    GerTomcatConfigType tomcatConfig = (GerTomcatConfigType)anys[0].changeType(GerTomcatConfigType.type);
+                    GerTomcatConfigType tomcatConfig = (GerTomcatConfigType)anys[0].copy().changeType(GerTomcatConfigType.type);
                     if (tomcatConfig.isSetHost()) {
                         String virtualServer = tomcatConfig.getHost().trim();
                         webModuleData.setAttribute("virtualServer", virtualServer);



Mime
View raw message