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 135473 - ws client generation corrupts jaxws-build.xml
Summary: ws client generation corrupts jaxws-build.xml
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 2 votes (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
: 148580 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-21 08:36 UTC by pkaczyns
Modified: 2010-03-31 08:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pkaczyns 2008-05-21 08:36:04 UTC
Simple scenario:
1) Create EJB project
2) Create ws client from wsdl file
3) Build project with error: "Target "wsimport-client-generate" does not exist in the project....."

PLEASE, TEST THIS ^%#$%$& IDE BEFORE RELEASING (this build is 200804211638, release version(!), downloaded with open 
esb)

I LOST A WEEK ON THIS BUUUUUUUUUUG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Comment 1 Milan Kuchtiak 2008-05-27 13:23:11 UTC
Sorry for inconvenience.
Can you, please, attach the wsdl file ?
Comment 2 pkaczyns 2008-05-27 13:48:55 UTC
This does not have anything to do with wsdl files. I've been researching it more deeply and firstly I thought that
newest NB (20.05) fixed it, that is it was generating proper xmls, but finally it turned out, that it is connected with
client generation.

My situation was that I had a web service generated from wsdl, then I replaced it with normal service created from
scratch. NB somehow remembered the fact, that there was ws generated from wsdl and did not deleted proper entry in
jax-ws.xml. I erased it manually and even deleted build-impl.xml and jaxws-build.xml, so that NB could regenerate them.
It regenerated them wrong (still with targets for wsgen of service generated from wsdl). 

Then I erased those xmls again, closed the computer and went home after 8 hours of empty work....

At home, opening NB again regenerated those xmls correctly!!! I don't know how and based on what targets
"wsimport-service-generate" are included in xmls mentioned earlier.

If any other information is needed, I am at your service, but please fix this IDE!! I am in a large project in which we
lost about 50% of time on thinking if "it does not work, because it's GF or NB bug or we did something wrong".
Comment 3 Milan Kuchtiak 2008-05-27 15:11:36 UTC
Thank You for additional description. Now I think it's more clear.

jaxws-build.xml is generated from jax-ws.xml (which is crucial).
If something is corrupted in jaxws-build.xml the file should be removed, and the project should be closed and reopened.
The content should be re-generated again from jax-ws.xml.
Comment 4 Jeffrey Rubinoff 2008-05-28 21:24:37 UTC
User reported similar issue in nbdocs-feedback.
Comment 5 Milan Kuchtiak 2008-06-17 12:49:27 UTC
I fixed some issues related to 2 clients that were generated for 2 wsdl files with the same namespace.
I guess, this was the problem of this issue.

See the fix:
http://hg.netbeans.org/main?cmd=changeset;node=51d0ada647ec

See also the similar issue 136831

If the problem still persists, please describe again the scenario (steps) to be able to reproduce.
Thanks. 
Comment 6 Jaroslav Pospisil 2008-07-01 15:04:45 UTC
v.
Comment 7 etapia 2008-07-22 22:02:40 UTC
see issue 138478.

I tried following this guide (http://wiki.netbeans.org/PlainView.jsp?page=BeginningWithEnterpriseApplication) and when I
try to consume a web service, i get:

Target "wsimport-client-clean-NewContactWS" does not exist in the project "ContactDemoApplication-war-impl". 
BUILD FAILED (total time: 0 seconds)


Comment 8 etapia 2008-07-22 22:05:13 UTC
here is my info:

Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.24-16-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/erick/.netbeans/6.1
Comment 9 Milan Kuchtiak 2008-07-31 10:50:07 UTC
This issue should already have been fixed in 6.5.
See also the following fix:
http://hg.netbeans.org/main?cmd=changeset;node=1f564196dd3e
Comment 10 Milan Kuchtiak 2008-09-29 11:09:58 UTC
*** Issue 148580 has been marked as a duplicate of this issue. ***
Comment 11 Jaroslav Pospisil 2010-03-31 08:57:13 UTC
v.