It's a shot in the dark but...

My wsdl-first CXF service specifies the WSDL location like so:
wsdlLocation="WEB-INF/myservice.wsdl"

In my project (which uses Maven2), the wsdl file is indeed at:
C:/projects/mywebservice/src/main/webapp/WEB-INF/myservice.wsdl

If I do a mvn:install and hand-deploy the .war to jboss or tomcat, it
works great.

If I try using the embedded Jetty plugin, it fails:
mvn jetty:run
causes:
Caused by: java.io.FileNotFoundException:
C:/projects/mywebservice/WEB-INF/myservice.wsdl (The system cannot find
the path specified)

Note that it searches for the wsdl relative to the project root rather
than the webapp root.  Does anyone know how to fix it?  Thus far, the
only way I can get it is to have it load the WSDL from the classpath
instead.

-Chris

Reply via email to