Re: Issues with "wsimport" and classpath

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Tue, 14 Jun 2005 14:18:16 -0700

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

<target name="generate-client">
            <path refid="jaxws.classpath"/>
            <pathelement location="${build.classes.home}"/>
        <binding dir="${basedir}/etc" includes="${client.binding}"/>

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.


>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
>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:
>For additional commands, e-mail:

Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.