aspose file tools*
The moose likes Web Services and the fly likes Problems with JAX-WS 2.1 API in Netbeans 6.0 using Tomcat 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problems with JAX-WS 2.1 API in Netbeans 6.0 using Tomcat 6.0" Watch "Problems with JAX-WS 2.1 API in Netbeans 6.0 using Tomcat 6.0" New topic
Author

Problems with JAX-WS 2.1 API in Netbeans 6.0 using Tomcat 6.0

srikanth kethiri
Greenhorn

Joined: Mar 06, 2008
Posts: 4
I have installed Netbeans 6.0.
I tried one webservices application with Tomcat 6.0 as server in this IDE
and I created one webservice in that application.The IDE generates
JAX-WS 2.1 related libraries.But,tomcat 6.0 supports JAX-WS 2.0 API.
For that reason, I got deployment error as
Failed-Context path .What I should do now for deploying that application successfully.
Please anybody help me.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by srikanth kethiri:
But,tomcat 6.0 supports JAX-WS 2.0 API.


Tomcat doesn't support JAX-WS 2.0 - the Java SE 6 SDK does.
Tomcat needs to know where JAX-WS 2.1 is. Obviously NetBeans must have it somewhere but you may want to consider installing JAX-WS 2.1 separately. You can download it from here.

(My NetBeans6.0 placed it under {NetBeans6.0 Installation Directory}/java1/modules/ext/jaxws21/api )

Then you need to let Tomcat "know about it".
That process is described here.


To run the samples with Tomcat 6 follow these steps. Edit $CATALINA_HOME/conf/catalina.properties and set shared.loader={RI Installation Directory}/lib/*.jar If you are running multiple instances of Tomcat, then edit CATALINA_BASE/conf/catalina.properties for that particular instance.


So if you want Tomcat to have access to the NetBeans version of JAX-WS then you have to have something like

in your conf/catalina.properties file.

For some reason NetBeans splits the api jars into jaxws21/api and the implementation jars into jaxws21/ - the JAX-WS 2.1.3 reference implementation doesn't do that)
srikanth kethiri
Greenhorn

Joined: Mar 06, 2008
Posts: 4
Thanks for reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with JAX-WS 2.1 API in Netbeans 6.0 using Tomcat 6.0