Hello Andres,
   I am assuming you are using Tomcat as your deployment container. In that
case, Tomcat uses a couple of context based class loaders to load the
required classes/resources for  your application. When you use
System.class.getResourceAsStream(), it would try and use the class loader it
used to load the base Java classes. And that class loader may not be able to
find the classes in the WEB-INF directory. Replace that call with <an
application class>.class.getResourceAsStream() and make sure to put the WSDL
directly under WEB-INF/classes directory. That should work.

Thanks,
Pattabi Doraiswamy

On 2/9/07, Andres Ortiz <[EMAIL PROTECTED]> wrote:

Hi,
I am deploying a CXF service using the spring container. It works well,
however this service refers to another service. I do not want to hardcode
the WSDL reference to the other service so I am trying to get it as a
resource:
     URL wsdlURL =System.class.getResource("/AnotherService.wsdl");
But I am getting a null wsdlURL when I deploy the service in the spring
container.
If I run a standalone client, it can find the WSDL as a resource in the
classpath without a problem.
How can I add the wsdl directory in WEB-INF/wsdl to the classpath?

Thanks,
Andres Ortiz





--
Pattabi Doraiswamy

Reply via email to