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: | NoSuchMethodError by attempt to add W/S when running IDE on JDK 1.6 | ||
---|---|---|---|
Product: | obsolete | Reporter: | Roman Mostyka <romanmostyka> |
Component: | visualweb | Assignee: | Quy Nguyen <quynguyen> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 102430 | ||
Attachments: |
IDE's log
IDE's log Text from Output window |
Description
Roman Mostyka
2007-04-25 18:27:02 UTC
Created attachment 41654 [details]
IDE's log
Appears to be caused by running the IDE on JDK 1.6. *** This issue has been marked as a duplicate of 102532 *** This is caused by an incompatibility of the JAX-WS 2.0 implementation in JDK 1.6 and the required JAX-WS 2.1 used by the IDE. The workaround is as follows: To use web services with JDK 1.6, copy the following jars to $JAVA_HOME/jre/lib/endorsed (you may need to create this directory first): $installdir/java1/modules/ext/jaxws21/api/jaxb-api.jar $installdir/java1/modules/ext/jaxws21/api/jaxws-api.jar Downgrading to P2 since there is a workaround available. An additional flag has been added to the wsimport calls to override the JAX-WS version in the JDK. Using W/S on JDK 1.6 (tested on 1.6.0_01) should work correctly now. Verified with 20070501 (M9). It works with workaround, but doesn't without. Or it is expected behaviour? Created attachment 42058 [details]
IDE's log
Created attachment 42059 [details]
Text from Output window
An additional fix has been made. The previous fix was missing some flags for wsimport that caused it to not work in some cases. /cvs/visualweb/websvcmgr/release/ws_import_compile.xml,v <-- ws_import_compile .xml new revision: 1.13; previous revision: 1.12 done /cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/codegen/Ws dl2Java.java,v <-- Wsdl2Java.java new revision: 1.13; previous revision: 1.12 done Verified with build 20070503. |