• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply
 
reply
    Bookmark Topic Watch Topic
  • New Topic