[jbossws-commits] JBossWS SVN: r8407 - in container/jboss50: trunk/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Oct 9 04:15:28 EDT 2008


Author: richard.opalka at jboss.com
Date: 2008-10-09 04:15:27 -0400 (Thu, 09 Oct 2008)
New Revision: 8407

Modified:
   container/jboss50/branches/jbossws-jboss500CR2-3.0.4.GA/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java
   container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java
Log:
[JBWS-2246][JBWS-2264][JBAS-5732] always start endpoint servlets when web application is deployed

Modified: container/jboss50/branches/jbossws-jboss500CR2-3.0.4.GA/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java
===================================================================
--- container/jboss50/branches/jbossws-jboss500CR2-3.0.4.GA/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java	2008-10-09 01:41:31 UTC (rev 8406)
+++ container/jboss50/branches/jbossws-jboss500CR2-3.0.4.GA/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java	2008-10-09 08:15:27 UTC (rev 8407)
@@ -117,6 +117,16 @@
             initParams = new ArrayList<ParamValueMetaData>();
             servlet.setInitParam(initParams);
          }
+         
+         if (servlet.getLoadOnStartup() <= 0)
+         {
+            // [JBWS-2246] hack. We need to start all webservice endpoint servlets because of
+            // wsdl-publish-location feature. This feature generates wsdl to specified file
+            // location on the FS. Without starting the servlets the WSDL will not be published
+            // because publish wsdl deployment aspect is now called in endpoint init servlet
+            // lifecycle method and not in the deployers chain as it was in AS 4.x series.
+            servlet.setLoadOnStartup(1);
+         }
 
          String linkName = servlet.getServletName();
 

Modified: container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java
===================================================================
--- container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java	2008-10-09 01:41:31 UTC (rev 8406)
+++ container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployment/tomcat/WebMetaDataModifierImpl.java	2008-10-09 08:15:27 UTC (rev 8407)
@@ -117,6 +117,16 @@
             initParams = new ArrayList<ParamValueMetaData>();
             servlet.setInitParam(initParams);
          }
+         
+         if (servlet.getLoadOnStartup() <= 0)
+         {
+            // [JBWS-2246] hack. We need to start all webservice endpoint servlets because of
+            // wsdl-publish-location feature. This feature generates wsdl to specified file
+            // location on the FS. Without starting the servlets the WSDL will not be published
+            // because publish wsdl deployment aspect is now called in endpoint init servlet
+            // lifecycle method and not in the deployers chain as it was in AS 4.x series.
+            servlet.setLoadOnStartup(1);
+         }
 
          String linkName = servlet.getServletName();
 




More information about the jbossws-commits mailing list