This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NoClassDefFoundError appears when Java EE 5 web application with W/S deployed to Tomcat 6.0 | ||
---|---|---|---|
Product: | obsolete | Reporter: | Roman Mostyka <romanmostyka> |
Component: | visualweb | Assignee: | Quy Nguyen <quynguyen> |
Status: | VERIFIED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Error log |
Description
Roman Mostyka
2007-06-29 14:27:55 UTC
Created attachment 44569 [details]
Error log
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; /cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/consumer/DesignerWebServiceTransferManager.java,v <-- DesignerWebServiceTransferManager.java new revision: 1.5; previous revision: 1.4 done 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 $HOME\.netbeans\6.0m10\apache-tomcat-6.0.13_base\endorsed. 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 http://www.netbeans.org/issues/show_bug.cgi?id=108523? 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 endorsed directory? 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 be sufficient. 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. |