Author: richard.opalka(a)jboss.com
Date: 2008-02-22 04:36:46 -0500 (Fri, 22 Feb 2008)
New Revision: 5764
Modified:
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
Log:
[JBWS-2009] fixing FileNotFoundException when schema files are not in wsdl directory
Modified:
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2008-02-22
05:50:09 UTC (rev 5763)
+++
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2008-02-22
09:36:46 UTC (rev 5764)
@@ -235,6 +235,10 @@
resourcePath = resourcePath.substring(0,
resourcePath.lastIndexOf("/") + 1);
resourcePath = expLocation + resourcePath + schemaLocation;
+ while (resourcePath.indexOf("//") != -1)
+ {
+ resourcePath = resourcePath.replace("//", "/");
+ }
URL resourceURL = dep.getMetaDataFileURL(resourcePath);
InputStream is = new ResourceURL(resourceURL).openStream();
if (is == null)
Show replies by date