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.
The build-impl.xsl of the app client project takes the IDE's internal JARs when invoking the wsimport ant task. All the other EE projects (EJB and Web) take the JARs from GlassFish. If you use 5.5.1 with GlassFish 1.0/App Server 9.0 (which uses JAX-WS 2.0) the generated artifacts use the IDE's internal JAX-WS JARs, which are 2.1. Thus the client fails to compile.
Created attachment 42907 [details] patch for release551 branch
Attached is patch which solves this issue in 5.5.1 branch.
The issue has been fixed in the trunk already and this is the back-port into the release551_fixes branch. Checking in api/AppClientProjectGenerator.java; /cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/api/AppClientProjectGenerator.java,v <-- AppClientProjectGenerator.java new revision: 1.1.4.21.16.1; previous revision: 1.1.4.21 done Checking in ui/customizer/AppClientProjectProperties.java; /cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/ui/customizer/AppClientProjectProperties.java,v <-- AppClientProjectProperties.java new revision: 1.1.4.20.16.1; previous revision: 1.1.4.20 done Checking in resources/build-impl.xsl; /cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/resources/build-impl.xsl,v <-- build-impl.xsl new revision: 1.1.4.25.8.5.4.1; previous revision: 1.1.4.25.8.5 done
verified
Fix doesn't work with 9.0/GlassFish v1 because the wsimport ant task in JAX-WS 2.0 doesn't support the xendorsed attribute. The following is the output from the simpleclient Java EE 5 tutorial example: Getting: http://localhost:8080/helloservice/HelloService?wsdl To: C:\working\jsstutorials\examples\jaxws\simpleclient\src\conf\xml-resources\web-service-references\HelloService\wsdl\localhost_8080\helloservice\HelloService.wsdl init: deps-clean: Deleting directory C:\working\jsstutorials\examples\jaxws\simpleclient\build clean: Getting: http://localhost:8080/helloservice/HelloService?wsdl To: C:\working\jsstutorials\examples\jaxws\simpleclient\src\conf\xml-resources\web-service-references\HelloService\wsdl\localhost_8080\helloservice\HelloService.wsdl init: deps-jar: wsimport-init: Created dir: C:\working\jsstutorials\examples\jaxws\simpleclient\build\generated\wsimport\client Created dir: C:\working\jsstutorials\examples\jaxws\simpleclient\build\generated\wsimport\binaries wsimport-client-check-HelloService: wsimport-client-HelloService: C:\working\jsstutorials\examples\jaxws\simpleclient\nbproject\build-impl.xml:324: The <wsimport> type doesn't support the "xendorsed" attribute. at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:389) at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370) at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324) at org.apache.tools.ant.Task.maybeConfigure(Task.java:254) at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:189) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158) at org.apache.tools.ant.Task.perform(Task.java:363) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131) BUILD FAILED (total time: 2 seconds) The relevant section of build-impl.xml is: <target name="wsimport-client-HelloService" depends="wsimport-init,wsimport-client-check-HelloService" unless="wsimport-client-HelloService.notRequired"> <wsimport xendorsed="true" extension="true" sourcedestdir="${build.generated.dir}/wsimport/client" destdir="${build.generated.dir}/wsimport/binaries" wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/HelloService/wsdl/localhost_8080/helloservice/HelloService.wsdl" wsdlLocation="http://localhost:8080/helloservice/HelloService?wsdl" catalog="catalog.xml"/> <copy todir="${classes.dir}"> <fileset dir="${build.generated.dir}/wsimport/binaries" includes="**/*.xml"/> </copy> </target> JAX-WS 2.0 environments must have a different target, with a wsimport task that doesn't use xendorsed.
Assigning to the websvc component.
that's a different issue, let's track it separately as issue 107072.
v.