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 102424 - xendorsed flag in wsimport disappears after regeneration of build-impl.xml
Summary: xendorsed flag in wsimport disappears after regeneration of build-impl.xml
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks: 102218
  Show dependency tree
 
Reported: 2007-04-25 05:36 UTC by Peter Liu
Modified: 2008-01-30 14:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
StockQuoteClient project for reproducing the issue (39.11 KB, application/octet-stream)
2007-04-25 05:37 UTC, Peter Liu
Details
Diff file for WebProject.java (393 bytes, text/plain)
2007-04-27 04:11 UTC, Roderico Cruz
Details
Diff file for WebProjectJAXWSVersionProvider (1.06 KB, text/plain)
2007-04-27 04:12 UTC, Roderico Cruz
Details
Diff file for EJBProjectJAXWSVersionProvider (1.08 KB, text/plain)
2007-04-27 04:18 UTC, Roderico Cruz
Details
SORRY! Previous one was the wrong diff this is the right one (1001 bytes, text/plain)
2007-04-27 04:24 UTC, Roderico Cruz
Details
SORRY! Previous one was the wrong diff this is the right one (1.46 KB, text/plain)
2007-04-27 04:27 UTC, Roderico Cruz
Details
Diff for AppClientJAXWSVersionProvider (965 bytes, text/plain)
2007-04-28 00:51 UTC, Roderico Cruz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Liu 2007-04-25 05:36:58 UTC
Under some unknown conditions, the xendorsed flag in wsimport gets erased if the
build-impl.xml gets regenerated.

To reproduce, simply unzip the attached StockQuoteClient project. Before you
open it, you will see the build-impl.xml has the xendorsed flag in it. When you
open it in the IDE, the build-impl.xml will get regenerated and the xendorsed
disappears.
Comment 1 Peter Liu 2007-04-25 05:37:50 UTC
Created attachment 41596 [details]
StockQuoteClient project for reproducing the issue
Comment 2 Roderico Cruz 2007-04-26 08:31:46 UTC
I am unable to reproduce this, with the instructions that you gave.
I opened the project and after a few seconds the build-impl.xml was regenerated
and the xendorsed option in the wsimport invocation was still there.
So I tried to change the project.xml, saved it (which shd trigger another
regen), xendorsed still there.
Closing as worksforme. 
Comment 3 Peter Liu 2007-04-26 19:34:35 UTC
Hi Rico,  it turns out the workaround I put in stopped working. It is likely
something else changed in the latest build that caused the build-impl to get
generated.  At this point, since I don't really have control over the
regeneration of build-impl.xml, I am reopening this bug as a stopper issue.

As for reproducing the issue, simply unzip the attached project.  Before you
open the project, take a look at the build-impl.xml.  The
wsimort-client-StockService has the xendorsed flag turned on.  After you open
the project, you'll noticed that the build-impl.xml gets regenerated and the
xendorsed flag is gone.

Comment 4 Roderico Cruz 2007-04-27 04:04:33 UTC
The problem is that if the project does not have the j2ee.server.instance
property set in the private.properties file, it is assumed that the EE project
is targeted at GF V1. The sample project was generated with no entries in the
private.properties file. The solution is as follows: if the private.properties
file does not have the j2ee.server.instance property, look up the
j2ee.server.type property in the project.properties file. If it is defined, look
up the instances of that type from the server registry and use that information
to determine the target server.
Fixed in the trunk.
Comment 5 Roderico Cruz 2007-04-27 04:11:34 UTC
Created attachment 41783 [details]
Diff file for WebProject.java
Comment 6 Roderico Cruz 2007-04-27 04:12:58 UTC
Created attachment 41784 [details]
Diff file for WebProjectJAXWSVersionProvider
Comment 7 Roderico Cruz 2007-04-27 04:18:32 UTC
Created attachment 41785 [details]
Diff file for EJBProjectJAXWSVersionProvider
Comment 8 Roderico Cruz 2007-04-27 04:24:08 UTC
Created attachment 41787 [details]
SORRY! Previous one was the wrong diff this is the right one
Comment 9 Roderico Cruz 2007-04-27 04:27:29 UTC
Created attachment 41788 [details]
SORRY! Previous one was the wrong diff this is the right one
Comment 10 Milan Kuchtiak 2007-04-27 10:19:02 UTC
The fix looks correct.
You can put it to M9 branch.
Comment 11 Roderico Cruz 2007-04-28 00:48:42 UTC
Applying fix to App Client project. Diff attached.
Comment 12 Roderico Cruz 2007-04-28 00:51:17 UTC
Created attachment 41907 [details]
Diff for AppClientJAXWSVersionProvider
Comment 13 Srividhya Narayanan 2007-04-28 01:13:37 UTC
The patch looks fine.
Comment 14 Lukas Jungmann 2007-06-11 20:36:01 UTC
In which milestone has this been fixed? Peter, can you verify this, please? Thanks.
Comment 15 Roderico Cruz 2007-06-11 22:44:00 UTC
I believe this was fixed before Java ONE so that would be Milestone 9
Comment 16 Jaroslav Pospisil 2008-01-30 14:18:03 UTC
v.