Author: richard.opalka(a)jboss.com
Date: 2010-03-24 14:57:36 -0400 (Wed, 24 Mar 2010)
New Revision: 11854
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
Log:
[JBPAPP-3245] don't throw IllegalStateException for WebServiceProvider endpoints
without WSDL, just log warning
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2010-03-24
12:33:23 UTC (rev 11853)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2010-03-24
18:57:36 UTC (rev 11854)
@@ -101,6 +101,9 @@
for (ServiceMetaData serviceMetaData : wsMetaData.getServices())
{
File wsdlFile = getPublishLocation(deploymentName, serviceMetaData);
+ if (wsdlFile == null)
+ continue;
+
wsdlFile.getParentFile().mkdirs();
// Get the wsdl definition and write it to the wsdl publish location
@@ -324,7 +327,10 @@
wsdlLocation = serviceMetaData.getWsdlFile();
if (wsdlLocation == null)
- throw new IllegalStateException("Cannot obtain wsdl location for: " +
serviceMetaData.getServiceName());
+ {
+ log.warn("Cannot obtain wsdl location for: " +
serviceMetaData.getServiceName());
+ return null;
+ }
log.debug("Publish WSDL file: " + wsdlLocation);
Show replies by date