Discussion:
<wsimport> type doesn't support the "xendorsed" attribute
tapperta
2007-04-17 19:24:40 UTC
Permalink
I'm getting this error message trying to generate a webservice client. What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.

The build file has this offending entry:

<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">

<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>

<copy todir="${classes.dir}">

<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>

</copy>

</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10044245
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Roderico Cruz
2007-04-17 19:31:46 UTC
Permalink
Hi,
What version of Glassfish are you using? And you are creating a client
on an EJB module, right?
Thanks.
Rico
Post by tapperta
I'm getting this error message trying to generate a webservice client. What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
tapperta
2007-04-17 21:02:11 UTC
Permalink
V2, build33 and yes, this is occuring in an EJB project
Post by Roderico Cruz
Hi,
What version of Glassfish are you using? And you are creating a client
on an EJB module, right?
Thanks.
Rico
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10047716
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Lukas Jungmann
2007-04-17 19:35:26 UTC
Permalink
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client. What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task

--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
tapperta
2007-04-17 21:22:13 UTC
Permalink
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying this
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
and now i just get this:

taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)

Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web service
client" thing and gave me an NPE.

I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10048010
Sent from the Netbeans - Users mailing list archive at Nabble.com.
tapperta
2007-04-17 21:29:28 UTC
Permalink
Oh boy, now NB5.5 is broke too. It tells me "Web Service Client can not be
created by JAXWS:wsimport utility. Reason: Illegal attempt to exit early"
Post by tapperta
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web
service client" thing and gave me an NPE.
I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10048189
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Lukas Jungmann
2007-04-17 21:39:00 UTC
Permalink
Post by tapperta
Oh boy, now NB5.5 is broke too. It tells me "Web Service Client can not be
created by JAXWS:wsimport utility. Reason: Illegal attempt to exit early"
Your WSDL is rpc/enc or there are some naming conflicts during
generation of java classes from your WSDL or... There can be many
reasons why the client creation failed. Can you share your WSDL file or
at least check the output of the build, please?

--lj
Post by tapperta
Post by tapperta
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web
service client" thing and gave me an NPE.
I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
tapperta
2007-04-17 22:06:24 UTC
Permalink
Here is the build output
Post by Lukas Jungmann
C:\Documents and Settings\atappert\My
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: 0 seconds)
and http://www.w3schools.com/webservices/tempconvert.asmx?WSDL here is the
WSDL
Post by Lukas Jungmann
Post by tapperta
Oh boy, now NB5.5 is broke too. It tells me "Web Service Client can not be
created by JAXWS:wsimport utility. Reason: Illegal attempt to exit early"
Your WSDL is rpc/enc or there are some naming conflicts during
generation of java classes from your WSDL or... There can be many
reasons why the client creation failed. Can you share your WSDL file or
at least check the output of the build, please?
--lj
Post by tapperta
Post by tapperta
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web
service client" thing and gave me an NPE.
I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client"
extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10048742
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Lukas Jungmann
2007-04-17 22:29:12 UTC
Permalink
Post by tapperta
Here is the build output
Post by Lukas Jungmann
C:\Documents and Settings\atappert\My
The <wsimport> type doesn't support the "xendorsed" attribute.
at
...
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
BUILD FAILED (total time: 0 seconds)
and http://www.w3schools.com/webservices/tempconvert.asmx?WSDL here is the
WSDL
In one from your emails you said you use GF-v2-b33 (~beta1), can you
please update glassfish to eg. b41 (~beta2) and try it with it -
"xendorsed" attribute becomes available from its b39 therefore it cannot
work with your b33. Also please try to avoid having spaces in paths (to
gf, ide, projects), this could be also a cause of some issues.

--lj
Post by tapperta
Post by Lukas Jungmann
Post by tapperta
Oh boy, now NB5.5 is broke too. It tells me "Web Service Client can not be
created by JAXWS:wsimport utility. Reason: Illegal attempt to exit early"
Your WSDL is rpc/enc or there are some naming conflicts during
generation of java classes from your WSDL or... There can be many
reasons why the client creation failed. Can you share your WSDL file or
at least check the output of the build, please?
--lj
Post by tapperta
Post by tapperta
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web
service client" thing and gave me an NPE.
I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client"
extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
Lukas Jungmann
2007-04-17 21:31:56 UTC
Permalink
Post by tapperta
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying this
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web service
client" thing and gave me an NPE.
Can you send us a stacktrace you got (or the log), please? You can find
the log file in your userdir ($USER_HOME/.netbeans/<nbversion>/var/log).
Also note that JAXWS 2.1 works with GlassFish-v2-b39 and later

--lj
Post by tapperta
I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
tapperta
2007-04-17 21:46:18 UTC
Permalink
Post by Lukas Jungmann
Also note that JAXWS 2.1 works with GlassFish-v2-b39 and later
DOE!
Post by Lukas Jungmann
Exception in thread "main" java.lang.NullPointerException
at
com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:201)
at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:502)
at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:216)
at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:69)
at
com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120)
at
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2159)
at
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:179)
at
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:127)
at
com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.ws.Invoker.WsimportMain(Invoker.java:78)
at com.sun.tools.ws.WsImport.main(WsImport.java:38)
Command invoked: wsimport "C:\Program
Files\Java\jdk1.6.0\jre\bin\java.exe" "-Djava.endorsed.dirs=C:\Program
Files\netbeans-5.5.1dev\ide7\modules\ext\jaxws21\api" -classpath
C:\Sun\glassfish\lib\webservices-tools.jar;C:\Sun\glassfish\lib\webservices-rt.jar;C:\Sun\glassfish\lib\appserv-jstl.jar;C:\Sun\glassfish\lib\javaee.jar;C:\Sun\glassfish\lib\mail.jar;C:\Sun\glassfish\lib\activation.jar
com.sun.tools.ws.WsImport -d "C:\Documents and Settings\atappert\My
Documents\Netbeans\Projects\MyProject\EJBModule1\build\generated\wsimport\binaries"
-extension -keep -s "C:\Documents and Settings\atappert\My
Documents\Netbeans\Projects\MyProject\EJBModule1\build\generated\wsimport\client"
-catalog "C:\Documents and Settings\atappert\My
Documents\Netbeans\Projects\MyProject\EJBModule1\catalog.xml"
"C:\Documents and Settings\atappert\My
Documents\Netbeans\Projects\MyProject\EJBModule1/src/conf/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
-p sdd -wsdllocation
http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL
Post by tapperta
well, I tried the fork thing and got some other error that I wanted to
reproduce and write about, but I seemed to have hosed something trying this
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
taskdef class com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Also, since it would seem that it's fixed, I downloaded a NB5.5.1 nightly
build installer, installed it, and tried this whole "creating a web service
client" thing and gave me an NPE.
Can you send us a stacktrace you got (or the log), please? You can find
the log file in your userdir ($USER_HOME/.netbeans/<nbversion>/var/log).
Also note that JAXWS 2.1 works with GlassFish-v2-b39 and later
--lj
Post by tapperta
I give up
Hi,
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What
is strange is that it is an error about my build file. This is with NB5.5.1
RC1.
this has been already fixed for 5.5.1 FCS (see
http://www.netbeans.org/issues/show_bug.cgi?id=99241 for details) which
should go live by the end of May. For now try to add fork="true" to the
wsimport task
--lj
Post by tapperta
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10048451
Sent from the Netbeans - Users mailing list archive at Nabble.com.
tapperta
2007-04-17 20:04:29 UTC
Permalink
I think I found something related to this
http://article.gmane.org/gmane.comp.java.netbeans.reviewers/1361 here
Post by tapperta
I'm getting this error message trying to generate a webservice client.
What is strange is that it is an error about my build file. This is with
NB5.5.1 RC1.
<target name="wsimport-client-MyWebService"
depends="wsimport-init,wsimport-client-check-MyWebService"
unless="wsimport-client-MyWebService.notRequired">
<wsimport xendorsed="true"
sourcedestdir="${build.generated.dir}/wsimport/client" extension="true"
package="Myproject.WebServiceClients"
destdir="${build.generated.dir}/wsimport/binaries"
wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/MyWebService/wsdl/127.0.0.1/test/MyWebService.dll/wsdl/MyWebService.wsdl"
wsdlLocation="http://127.0.0.1/test/MyWebService.dll/wsdl/MyWebService?WSDL"
catalog="catalog.xml"/>
<copy todir="${classes.dir}">
<fileset dir="${build.generated.dir}/wsimport/binaries"
includes="**/*.xml"/>
</copy>
</target>
--
View this message in context: http://www.nabble.com/%3Cwsimport%3E-type-doesn%27t-support-the-%22xendorsed%22-attribute-tf3596046.html#a10045712
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Loading...