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

Summary: xendorsed flag in wsimport disappears after regeneration of build-impl.xml
Product: webservices Reporter: Peter Liu <petertliu>
Component: ClientAssignee: Roderico Cruz <rcruz>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 102218    
Attachments: StockQuoteClient project for reproducing the issue
Diff file for WebProject.java
Diff file for WebProjectJAXWSVersionProvider
Diff file for EJBProjectJAXWSVersionProvider
SORRY! Previous one was the wrong diff this is the right one
SORRY! Previous one was the wrong diff this is the right one
Diff for AppClientJAXWSVersionProvider

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.