File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
srikanth kethiri
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2933
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic