Author: richard.opalka(a)jboss.com
Date: 2008-05-14 08:37:28 -0400 (Wed, 14 May 2008)
New Revision: 7027
Modified:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/DeploymentDescriptorParserExt.java
Log:
use resourceloader instead of classloader
Modified:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/DeploymentDescriptorParserExt.java
===================================================================
---
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/DeploymentDescriptorParserExt.java 2008-05-14
11:21:36 UTC (rev 7026)
+++
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/DeploymentDescriptorParserExt.java 2008-05-14
12:37:28 UTC (rev 7027)
@@ -274,7 +274,7 @@
Class<?> implementorClass = getImplementorClass(implementationName,
reader, this.classLoader);
EndpointFactory.verifyImplementorClass(implementorClass);
- SDDocumentSource primaryWSDL = getPrimaryWSDL(reader, attrs,
implementorClass, this.classLoader, this.docs);
+ SDDocumentSource primaryWSDL = getPrimaryWSDL(reader, attrs,
implementorClass, this.loader, this.docs);
QName serviceName = getQNameAttribute(attrs, ATTR_SERVICE);
if (serviceName == null)
@@ -422,7 +422,7 @@
XMLStreamReader xsr,
Attributes attrs,
Class<?> implementorClass,
- ClassLoader loader,
+ ResourceLoader loader,
Map<String, SDDocumentSource> docs
)
{
@@ -434,7 +434,13 @@
if (wsdlFile != null)
{
- URL wsdl = loader.getResource(wsdlFile);
+ URL wsdl = null;
+ try
+ {
+ wsdl = loader.getResource(wsdlFile);
+ }
+ catch (MalformedURLException ignore) {}
+
if (wsdl == null)
{
throw new
LocatableWebServiceException(ServerMessages.RUNTIME_PARSER_WSDL_NOT_FOUND(wsdlFile),
xsr);
Show replies by date