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 155186

Summary: A project using a webservice always shows errors and makes JSF designer unusable.
Product: webservices Reporter: ddevore <ddevore>
Component: JAX-WSAssignee: Milan Kuchtiak <mkuchtiak>
Status: RESOLVED FIXED    
Severity: blocker CC: pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 105645    
Bug Blocks:    

Description ddevore 2008-12-10 21:37:51 UTC
A project that uses a webservice from another project always shows errors, in 6.1 if you recompiled or refreshed the ws
client the errors would not be reported anymore. The errors are that the classes of the generated ws client don't exist
thought the project will compile and run correctly. This error also causes the JSF designer to be completely useless.
Comment 1 Milan Kuchtiak 2008-12-11 09:41:55 UTC
Right, the issue is easily reproducible.
The workaround is to open properties dialog, change something (e.g. add some library) and close.

Looking for fix. 
Comment 2 Milan Kuchtiak 2008-12-11 14:28:13 UTC
I found that classpath of the project issn't refreshed after child project is build.

This is a similar (simpler) scenario :
- create a WS client in J2SEApplication project
- use generated classes in Main.java
- clean project
- restart IDE
- generated classes are error badged in Main.java. Project's build doesn't help.

The workaround is to build project, open Properties dialog and close it (no changes are needed in Properties dialog).
In case of two projects, the Properties dialog should be open in project where WS Client is generated.

We need to wait until some support for generated sources is implemented. Se the issue 105645.
Comment 3 ddevore 2008-12-11 15:53:54 UTC
This worked in 6.1 so I am guessing that this would be considered a defect, as it is currently marked. The problem I
have with this is that it has been marked as being dependent on an enhancement. How can a defect be dependent on an
enhancement. Also, why would a bug such as this, where it makes the designer unusable, be targeted for 7.0.
Comment 4 Milan Kuchtiak 2009-02-04 16:57:32 UTC
Fixed. Regarding CC, the generated sources are now handled as normal sources.
See the issue 105645.