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 109597

Summary: JAX-WS can't be generated for some Web Services if start IDE with Java 5
Product: obsolete Reporter: Roman Mostyka <romanmostyka>
Component: visualwebAssignee: Quy Nguyen <quynguyen>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Failure screenshot

Description Roman Mostyka 2007-07-13 09:41:08 UTC
1. Start IDE with J2EE 1.5.
2. Rightclick "Web Services" node and select "Add Web Service...".
3. Enter WSDL URL http://ghobad.homelinux.com:8080/FarsiDate/PersianCalendarService?WSDL or
http://ws.strikeiron.com/relauto/iplookup?WSDL.
4. Click Add.

Result: Message "Unable to generate JAX-WS client. This web service client will not function for J2EE 1.5 projects"
appears, JAX-WS isn't generated and W/S can't be used from Java EE 5 projects.
If start IDE with Java 6, everything will be fine.
Comment 1 Quy Nguyen 2007-07-13 19:41:51 UTC
Both services work for me on Windows XP with JDK 1.5.0_06.  Can you provide the contents of the output window when the
error is thrown?
Comment 2 Roman Mostyka 2007-07-16 14:25:14 UTC
I can't copy information from Output window, because appeared message dialog is modal and after its closing content of
Output window is renewed.
Only that I can do is screenshot (see in attach). Probably it helps.
Comment 3 Roman Mostyka 2007-07-16 14:25:58 UTC
Created attachment 45134 [details]
Failure screenshot
Comment 4 Quy Nguyen 2007-07-16 20:55:03 UTC
It looks like the compilation of the JAX-WS stub classes failed.  What platform and JDK version did you use?
Comment 5 Roman Mostyka 2007-07-17 08:55:00 UTC
I used Windows XP (with default $HOME in "Documents and Settings") and JDK 1.5.0_11.
Comment 6 Quy Nguyen 2007-07-19 01:05:10 UTC
This appears to be an issue with spaces in the path, since there looks to be something missing in the classpath.
Comment 7 Quy Nguyen 2007-07-19 01:58:28 UTC
The root cause appears to be:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6198196

A workaround has been implemented that prevents this issue from occurring by disabling the unneeded compilation on JDK 5.

Checking in release/ws_import_compile.xml;
/cvs/visualweb/websvcmgr/release/ws_import_compile.xml,v  <--  ws_import_compile.xml
new revision: 1.18; previous revision: 1.17
done
Comment 8 Roman Mostyka 2007-07-20 11:35:58 UTC
Verified with build 070720.