File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat 7 JAX-WS without sun-jaxws Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 JAX-WS without sun-jaxws" Watch "Tomcat 7 JAX-WS without sun-jaxws" New topic

Tomcat 7 JAX-WS without sun-jaxws

Oscar G. Rodriguez

Joined: Nov 05, 2011
Posts: 13

I'm trying to develop a test webservice without the sun-jaxws.xml, I'm using Tomcat 7 as is, adding the jaxws-rt 2.2.7 dependency in the eclipse project by maven. The dynamic web module facet is the 3.0.

The SEI is

It works without the web.xml file, but not without the sun-jaxws. The request always have a 404 response, only works with the sun-jaxws.xml.

The url may be http://localhost:8080/helloservice/HelloService?wsdl, attending to the example of

Maybe the url is wrong or I need another annotation, I also found this explanation

Of course, with the use of jax-ws annotations, even configuration sun-jaxws.xml can be made optional making it completely descriptor free, but that requires specifying a default url-pattern like in JSR-109 or custom pattern like in Jersey REST services, in the JAX-WS specification.

but I don't know how to specify the url-pattern by annotation.

I agree. Here's the link:
subject: Tomcat 7 JAX-WS without sun-jaxws
Similar Threads
Deploy JAXWS (Mustang) WS to Tomcat?
Trying to deploy JAX WS webservice on Tomcat 7.0.32
Issue while deploying web service jwstutorial example CLI171
Error while deploying the war file using command "asant deploy"