1. Add Web Service http://www.webservicemart.com/uszip.asmx?WSDL.
2. Create web application with "Visual Web JSF" framework.
3. Add Web Service to application's page.
4. Copy all jars from the C:\Sun\NetBeans6.0M10\java1\modules\ext\jaxws21\api folder to
5. Deploy to Tomcat 6.0.
Result: Error: "java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.spi.ProviderImpl". Application
Created attachment 44569 [details]
Workaround - add the JAX-WS 2.1 library to the project
After this, it should deploy properly.
The correct libraries are now included in the project when the web service is added to the page. The fix is only
integrated in the trunk.
Checking in src/org/netbeans/modules/visualweb/websvcmgr/consumer/DesignerWebServiceTransferManager.java;
new revision: 1.5; previous revision: 1.4
Verified with build 200707020000.
I got the same error, what is described in issue #108523. But now I get exception even after copying all jars from the
$NetBeans6.0\java1\modules\ext\jaxws21\api folder to
When I look at libraries in project's properties, I see there "JAX-WS2.1" library.
Which exception do you get? The exception from this issue or the exception from
I get LinkageError - the same error which is described in issue #108523, not in this issue.
The fix for this issue is unrelated to #108523. Did you stop and restart Tomcat after copying the jar files to the
Yes, I restarted Tomcat.
I installed IDE, GlassFish, Tomcat, opened IDE, started Tomcat, created
$HOME\.netbeans\6.0m10\apache-tomcat-6.0.13_base\endorsed, copied there jar files from
$NetBeans6.0\java1\modules\ext\jaxws21\api, restarted Tomcat, created Java EE 5 web application, deployed it to Tomcat
and got exception.
You may have to copy the jars before you start the IDE or initially start up Tomcat. Using the restart command may not
I installed IDE and Tomcat, started IDE, started Tomcat (without this apache-tomcat-6.0.13_base doesn't exist), then
stopped Tomcat, closed IDE, copied jar files, started IDE, started Tomcat, added W/S, created project, added W/S to it
and deployed. Result is the same.
The jax-ws jars need to be added an /endorsed subdirectory of the tomcat 6 install directory, not the NB user directory.
I'm not sure why the error message indicates that this is the correct place to put the jars.
Verified with build 2707100000.