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.
1. Open 'Runtime' tab. 2. Rightclick 'Web Services' node and select 'Add Web Service'. 3. Enter path to hellowordService.wsdl W/S from Creator2u1 in 'Local File' field. 4. Click Add button. Result: NoSuchMethodError arises and W/S isn't added. See log in attach. Build 20070425. Java 1.6.0. Solaris.
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.