I am attempting to build a JSR-181 POJO using an existing WSDL.
I specify wsdlLocation in my annotation:
@WebService(wsdlLocation="META-INF/wsdl/MyService.wsdl")
I package everything as a WAR and on deployment I get this:
10:33:03,695 ERROR [MainDeployer] Could not start deployment:
file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
org.jboss.ws.WSException: Invalid wsdlFile 'META-INF/wsdl/MyService.wsdl',
expected in: WEB-INF/wsdl/
at
org.jboss.ws.server.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:323)
Moving my WSDL to the WEB-INF directory also fails:
10:25:27,140 ERROR [MainDeployer] Could not create deployment:
file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
java.lang.IllegalArgumentException: Cannot find wsdl in deployment:
META-INF/wsdl/MyService.wsdl
at
org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:270)
Has anyone else been able to get this to work?
I am using jbossws-1.0.1.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950928#3950928
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950928
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user