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 173887 - Edit Web Attributes dialog changes jaxws-build.xml in unexpected ways
Summary: Edit Web Attributes dialog changes jaxws-build.xml in unexpected ways
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 15:55 UTC by sandi_ro
Modified: 2009-10-06 16:53 UTC (History)
0 users

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 sandi_ro 2009-10-06 15:55:11 UTC
Hi

In jaxws client project do folowing steps:

1) change jaxws-build.xml so that we can use jaxws22 ( will need diferent classpath) will need something like: 
    <target name="wsimport-init" depends="init">
        <mkdir dir="${build.generated.sources.dir}/jax-ws"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
            <classpath path="${libs.JAX-WS2.2.classpath}"/>
        </taskdef>
    </target>

2) go refresh client and the coompile will complain that we need to set xendorsed=true.
3) go to Edit Web Services attributes and add xendorsed option
4) step 3 reverts jaxws-build.xml to old classpath ( we actualy lost our reference to jaxws22 ) 

The reverting of the classpath is counterintuitive because: 
1) does not appear in "Edit Web Services " dialog
2) jaxws-buld.xml does not contain any comment warning about how to customize.

Thanks, Andrei.
Comment 1 Milan Kuchtiak 2009-10-06 16:53:05 UTC
The content of nbproject directory isn't designated for user modification.
See the similar issue 172392.

There was a little improvement implemented - some comments added to jaxws-build.xml to warn user not to modify ant script.
In Netbeans 6.8 you'll see :
<!--
        *** GENERATED FROM jax-ws.xml - DO NOT EDIT !                             ***
        *** TO MODIFY wsimport options USE Web Service node -> Edit WS Attributes ***
        *** TO CHANGE TARGETS GENERATED TO jaxws-build.xml COPY THOSE             ***
        *** TARGETS TO ../build.xml AND MODIFY THAT FILE INSTEAD                  ***

I agree that changing classpath for wsimport task is quite impossible.
But this is another issue : issue 173884.