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.
Not sure if this is a web service client issue or java editor issue, please reassign if necessary. I see this on NetBeans 6.0 FCS testing build. Web service client wizard generates code which is marked with an error badge. Steps to reproduce: 1. Create a new web project "WSDemo". 2. Create a new web service "WSTest" with one operation "testOperation" that returns a string and return "test" in the web service. 3. Deploy the web service to Glassfish v2. 4. Create a new Java project "WSClient". 5. Create a web service client using the web service client wizard. Choose to generate the client from "WSDemo" project and "WSTest" service. 6. Call the "testOperation" operation using rightclick | Web service client resource | Call web service operation. The code get generated in the main method. 6. Switch to files view. 7. Open the Files tab and expand build/generated/wsimport/client/packagename -> You should see an error badge on generated WSTestService class. However the web service client builds normally and the application works.
Created attachment 53737 [details] Screenshot of the error badge
Can't reproduce on my Windows Vista using your steps.Could you reproduce this on latest NB6FCS with clean userdir Roman? If so, try please to close WSTest.java file in editor and reopen,error badges should disappear.
I tried to reproduce it on Vista and the problem is there. I attach the demo project. Opening the file doesn't help to refresh.
Created attachment 53854 [details] Web service projects
I can't still reproduce,even with your files. I use JDK1.6.0_04,that's the reason (see Lucas's comment).
this issue depends on JDK used for running the IDE: -it works fine if IDE runs on JDK 5 or on JDK 6 update 4 and newer -this bug is valid if IDE runs on JDK 6 up to version JDK 6 update 3 (since these versions contain JAX-WS 2.0 and in the IDE there we're using JAX-WS 2.1)
The red badge will disapear after JAX-WS is upgraded in JDK1.6 (1.7).
Created attachment 54308 [details] proposed patch
Since IDE is blocking JAX-WS classes to be loaded directly from JDK, we have to add those classes to BOOT cp manually so they will become available in the editor. Attached patch solves this, feel free to reuse it.
I applied the patch. Thanks.
v.