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.

Bug 102530 - NoSuchMethodError by attempt to add W/S when running IDE on JDK 1.6
Summary: NoSuchMethodError by attempt to add W/S when running IDE on JDK 1.6
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks: 102430
  Show dependency tree
 
Reported: 2007-04-25 18:27 UTC by Roman Mostyka
Modified: 2007-05-03 15:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE's log (55.97 KB, text/plain)
2007-04-25 18:28 UTC, Roman Mostyka
Details
IDE's log (38.19 KB, text/plain)
2007-05-02 17:04 UTC, Roman Mostyka
Details
Text from Output window (1.61 KB, text/plain)
2007-05-02 17:05 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-04-25 18:27:02 UTC
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.
Comment 1 Roman Mostyka 2007-04-25 18:28:11 UTC
Created attachment 41654 [details]
IDE's log
Comment 2 Quy Nguyen 2007-04-25 19:40:42 UTC
Appears to be caused by running the IDE on JDK 1.6.

*** This issue has been marked as a duplicate of 102532 ***
Comment 3 Quy Nguyen 2007-04-26 21:14:48 UTC
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
Comment 4 Quy Nguyen 2007-04-26 21:16:43 UTC
Downgrading to P2 since there is a workaround available.
Comment 5 Quy Nguyen 2007-05-02 06:39:12 UTC
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.
Comment 6 Roman Mostyka 2007-05-02 17:00:12 UTC
Verified with 20070501 (M9).
It works with workaround, but doesn't without.
Or it is expected behaviour?
Comment 7 Roman Mostyka 2007-05-02 17:04:48 UTC
Created attachment 42058 [details]
IDE's log
Comment 8 Roman Mostyka 2007-05-02 17:05:36 UTC
Created attachment 42059 [details]
Text from Output window
Comment 9 Quy Nguyen 2007-05-03 00:24:30 UTC
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
Comment 10 Roman Mostyka 2007-05-03 15:13:52 UTC
Verified with build 20070503.