Hi Charlie,
My comments inlined below:
Charlie Collins wrote:
>I am trying to setup an example (and then possibly contribute more
>code and documentation if help is needed, once I get up to speed)
>using the latest docs per CVS HEAD.
>
>I am using information directly from jaxws-ri/docs/wsimport.html. I
>am using my own simplified (attempting to) ant build file and looking
>at "common-targets.xml" from the samples/fromjava example.
>
>In both cases I get "[wsimport] error: -classpath is an invalid option
>or argument". And if I try without classpath of course I get many
>classpath related issues.
>
>
>
Are you trying the latest workspace and looking at latest wsimport.html?
wsimport doesnt have -classpath option so the error you're getting is
expected. Here is the generate-client target from
$JAXWS_HOME/samples/etc/common-targets:
<target name="generate-client">
<wsimport
fork="true"
debug="${debug}"
verbose="${verbose}"
keep="${keep}"
base="${build.classes.home}"
httpProxy="webcache.sfbay.sun.com:8080"
wsdlFile="${client.wsdl}">
<classpath>
<path refid="jaxws.classpath"/>
<pathelement location="${build.classes.home}"/>
</classpath>
<binding dir="${basedir}/etc" includes="${client.binding}"/>
</wsimport>
</target>
As you can see there is no classpath attribute on wsimport target. But
you can pass your own classpath using the ant's <classpath> element as
described above.
>Straight up from the samples/fromjava
>
>"ant server" - works fine
>"ant client" - "[wsimport] error: -classpath is an invalid option or argument"
>
>
>
I dont see the above error with 'ant client'. Perhaps I am using the
latest wsapce. Can you try refreshing your wspace and run it again? One
more thing, you need to have JAXWS_HOME and AS_HOME set correctly.
-vivek.
>I get the exact same results in my own build process which was written
>using the "tools" docs, similar to but not exactly the same as, the
>samples.
>
>I apologize for pestering anyone about stuff thats not even released
>yet, just wanted to inquire as to whether or not I might still be
>missing something?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>
--
Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.