Author: richard.opalka(a)jboss.com
Date: 2010-02-03 07:58:46 -0500 (Wed, 03 Feb 2010)
New Revision: 11534
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
Log:
[JBWS-2790] do not throw exception if wsdllocation is not provided, just log it
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2010-02-03
11:42:12 UTC (rev 11533)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2010-02-03
12:58:46 UTC (rev 11534)
@@ -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
@@ -326,7 +329,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;
+ }
if (log.isDebugEnabled())
log.debug("Publish WSDL file: " + wsdlLocation);