Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jaxws21 library missing from NetBeans 6

843833Feb 22 2008 — edited Mar 14 2008
I recently installed the NetBeans IDE 6.0 ("All" package). I used it to create a Web Service from a Java class and successfully deployed the service to GlassFish V2. I then attempted to create a Java class in a Java SE application to consume the service. After choosing New > Web Service Client and selecting the web service I kept getting the error:

init:_
wsimport-init:_
C:\Documents and Settings\536116\My Documents\NetBeansProjects\Test_Application\nbproject\jaxws-build.xml:11:_
taskdef class com.sun.tools.ws.ant.WsImport cannot be found_
BUILD FAILED (total time: 0 seconds)_



The jaxws-tools.jar contains the WsImport tool and that jar file was in <NetBeans install dir>\java1\modules\ext\jaxws21
The only way that I managed to create and compile the web services client was to create a new library in NetBeans, name it 'jaxws21', add the jaxws-tools.jar and then add the jaxws21 library to the project. Did I miss something in the installation process? Also, because I wasn't sure what should be in jaxws21, I added the jaxws-rt.jar, as well as the jaxws-tools.jar when I created the library. Are those the 2 jars that should be in jaxws21? Is there a way to not have to manually add the jaxws21 library each time I create a new Web Service client?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2008
Added on Feb 22 2008
3 comments
349 views