Author: richard.opalka(a)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();
Show replies by date