You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Murphy Steve <St...@comverse.com> on 2008/02/12 22:29:45 UTC
Run Java2WSDL on Class in Jar File?
I need to run Java2WSDL on a class that is in a jar file because all the
dependencies (imported classes) are also in the jar file.
Is this possible to do? If so, can anyone show me the syntax?
Thanks,
Steve
RE: Run Java2WSDL on Class in Jar File?
Posted by "Kraus, David" <dk...@MicroStrategy.com>.
Shouldn't the jar file specs be separated by ";" (semicolon), not ":"
(colon) ?
________________________________
From: Murphy Steve [mailto:Stephen.Murphy@comverse.com]
Sent: Thursday, February 14, 2008 1:57 PM
To: axis-user@ws.apache.org
Subject: RE: Run Java2WSDL on Class in Jar File?
Hi Upal,
I can't get this to work. I'm working on windows and I created a batch
file that looks like this:
%AXIS2_HOME%/bin/java2wsdl -cn com.myCompany.api.xxx.yyy.client.myClass
-cp
./jar-file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5
.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-fil
e6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar -of myClass.wsdl
(I had to change names because of confidentiality issues.)
I received the following error:
E:\E_ProgramFiles\toolkits\axis\axis2-1.3/bin/java2wsdl -cn
com.myCompany.api.xxx.yyy.client.myClass -cp
./jar-file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5
.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-fil
e6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar -of myClass.wsdl
Using AXIS2_HOME: E:\E_ProgramFiles\toolkits\axis\axis2-1.3
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
An error occured while generating codejava.lang.ClassNotFoundException:
com.myCompany.api.xxx.yyy.client.myClass
The batch file is in the same directory as my jar files and I know for
sure that the class is in the first jar file.
Can you see any errors?
Thanks and regards,
Steve
________________________________
From: Upul Godage [mailto:upulg.dev@gmail.com]
Sent: Wednesday, February 13, 2008 8:14 PM
To: axis-user@ws.apache.org
Subject: Re: Run Java2WSDL on Class in Jar File?
./java2wsdl.sh -cn test.Service -cp /path/classes.jar:/path/others.jar
cn is the class name. cp is normal Java classpath. sn for generated
service name.
Type ./java2wsdl.sh to see all the options.
Hope this helps
Upul
On Feb 13, 2008 2:59 AM, Murphy Steve <St...@comverse.com>
wrote:
I need to run Java2WSDL on a class that is in a jar file because all the
dependencies (imported classes) are also in the jar file.
Is this possible to do? If so, can anyone show me the syntax?
Thanks,
Steve
RE: Run Java2WSDL on Class in Jar File?
Posted by Murphy Steve <St...@comverse.com>.
Thanks Upal, Martin Gainty, and David Kraus.
I did Upal's recommended change of using a space instead of semicolons
and it worked!
(I'm very happy now.)
Steve
________________________________
From: Upul Godage [mailto:upulg.dev@gmail.com]
Sent: Thursday, February 14, 2008 6:22 PM
To: axis-user@ws.apache.org
Subject: Re: Run Java2WSDL on Class in Jar File?
Sorry. Use 'spaces' to separate the classpath entries. This cp is not
really a Java classpath.
./java2wsdl.sh -cn test.TestService -cp /path/test1.jar /path/test2.jar
Hope this helps.
Upul
On Fri, Feb 15, 2008 at 3:26 AM, Murphy Steve
<St...@comverse.com> wrote:
Hi Upal,
I can't get this to work. I'm working on windows and I created a batch
file that looks like this:
%AXIS2_HOME%/bin/java2wsdl -cn com.myCompany.api.xxx.yyy.client.myClass
-cp
./jar-file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5
.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-fil
e6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar -of myClass.wsdl
(I had to change names because of confidentiality issues.)
I received the following error:
E:\E_ProgramFiles\toolkits\axis\axis2-1.3/bin/java2wsdl -cn
com.myCompany.api.xxx.yyy.client.myClass -cp
./jar-file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5
.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-fil
e6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar -of myClass.wsdl
Using AXIS2_HOME: E:\E_ProgramFiles\toolkits\axis\axis2-1.3
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
An error occured while generating codejava.lang.ClassNotFoundException:
com.myCompany.api.xxx.yyy.client.myClass
The batch file is in the same directory as my jar files and I know for
sure that the class is in the first jar file.
Can you see any errors?
Thanks and regards,
Steve
________________________________
From: Upul Godage [mailto:upulg.dev@gmail.com]
Sent: Wednesday, February 13, 2008 8:14 PM
To: axis-user@ws.apache.org
Subject: Re: Run Java2WSDL on Class in Jar File?
./java2wsdl.sh -cn test.Service -cp /path/classes.jar:/path/others.jar
cn is the class name. cp is normal Java classpath. sn for generated
service name.
Type ./java2wsdl.sh to see all the options.
Hope this helps
Upul
On Feb 13, 2008 2:59 AM, Murphy Steve <St...@comverse.com>
wrote:
I need to run Java2WSDL on a class that is in a jar file because all the
dependencies (imported classes) are also in the jar file.
Is this possible to do? If so, can anyone show me the syntax?
Thanks,
Steve
Re: Run Java2WSDL on Class in Jar File?
Posted by Upul Godage <up...@gmail.com>.
Sorry. Use 'spaces' to separate the classpath entries. This cp is not really
a Java classpath.
./java2wsdl.sh -cn test.TestService -cp /path/test1.jar /path/test2.jar
Hope this helps.
Upul
On Fri, Feb 15, 2008 at 3:26 AM, Murphy Steve <St...@comverse.com>
wrote:
> Hi Upal,
>
>
>
> I can't get this to work. I'm working on windows and I created a batch
> file that looks like this:
>
>
>
> %AXIS2_HOME%/bin/java2wsdl -cn com.myCompany.api.xxx.yyy.client.myClass-cp ./jar-
> file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-file6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar-of
> myClass.wsdl
>
>
>
> (I had to change names because of confidentiality issues.)
>
>
>
> I received the following error:
>
>
>
> E:\E_ProgramFiles\toolkits\axis\axis2-1.3/bin/java2wsdl -cn
> com.myCompany.api.xxx.yyy.client.myClass -cp ./jar-
> file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-file6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar-of
> myClass.wsdl
>
> Using AXIS2_HOME: E:\E_ProgramFiles\toolkits\axis\axis2-1.3
>
> Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
>
> An error occured while generating codejava.lang.ClassNotFoundException:
> com.myCompany.api.xxx.yyy.client.myClass
>
>
>
> The batch file is in the same directory as my jar files and I know for
> sure that the class is in the first jar file.
>
>
>
> Can you see any errors?
>
>
>
> Thanks and regards,
>
> Steve
>
>
> ------------------------------
>
> *From:* Upul Godage [mailto:upulg.dev@gmail.com]
> *Sent:* Wednesday, February 13, 2008 8:14 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Run Java2WSDL on Class in Jar File?
>
>
>
> ./java2wsdl.sh -cn test.Service -cp /path/classes.jar:/path/others.jar
>
> cn is the class name. cp is normal Java classpath. sn for generated
> service name.
> Type ./java2wsdl.sh to see all the options.
>
> Hope this helps
>
> Upul
>
> On Feb 13, 2008 2:59 AM, Murphy Steve <St...@comverse.com> wrote:
>
> I need to run Java2WSDL on a class that is in a jar file because all the
> dependencies (imported classes) are also in the jar file.
>
>
>
> Is this possible to do? If so, can anyone show me the syntax?
>
>
>
> Thanks,
>
> Steve
>
>
>
RE: Run Java2WSDL on Class in Jar File?
Posted by Murphy Steve <St...@comverse.com>.
Hi Upal,
I can't get this to work. I'm working on windows and I created a batch
file that looks like this:
%AXIS2_HOME%/bin/java2wsdl -cn com.myCompany.api.xxx.yyy.client.myClass
-cp
./jar-file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5
.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-fil
e6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar -of myClass.wsdl
(I had to change names because of confidentiality issues.)
I received the following error:
E:\E_ProgramFiles\toolkits\axis\axis2-1.3/bin/java2wsdl -cn
com.myCompany.api.xxx.yyy.client.myClass -cp
./jar-file1-1.0.M5.0.1.jar:./jar-file2-1.0.M5.0.1.jar:./jar-file3-1.0.M5
.0.1.jar:./jar-file4-1.0.M5.0.1.jar:./jar-file5-1.0.M5.0.1.jar:./jar-fil
e6-1.0.M5.0.1.jar:./jar-file7-1.0.M5.0.1.jar -of myClass.wsdl
Using AXIS2_HOME: E:\E_ProgramFiles\toolkits\axis\axis2-1.3
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
An error occured while generating codejava.lang.ClassNotFoundException:
com.myCompany.api.xxx.yyy.client.myClass
The batch file is in the same directory as my jar files and I know for
sure that the class is in the first jar file.
Can you see any errors?
Thanks and regards,
Steve
________________________________
From: Upul Godage [mailto:upulg.dev@gmail.com]
Sent: Wednesday, February 13, 2008 8:14 PM
To: axis-user@ws.apache.org
Subject: Re: Run Java2WSDL on Class in Jar File?
./java2wsdl.sh -cn test.Service -cp /path/classes.jar:/path/others.jar
cn is the class name. cp is normal Java classpath. sn for generated
service name.
Type ./java2wsdl.sh to see all the options.
Hope this helps
Upul
On Feb 13, 2008 2:59 AM, Murphy Steve <St...@comverse.com>
wrote:
I need to run Java2WSDL on a class that is in a jar file because all the
dependencies (imported classes) are also in the jar file.
Is this possible to do? If so, can anyone show me the syntax?
Thanks,
Steve
Re: Run Java2WSDL on Class in Jar File?
Posted by Upul Godage <up...@gmail.com>.
./java2wsdl.sh -cn test.Service -cp /path/classes.jar:/path/others.jar
cn is the class name. cp is normal Java classpath. sn for generated service
name.
Type ./java2wsdl.sh to see all the options.
Hope this helps
Upul
On Feb 13, 2008 2:59 AM, Murphy Steve <St...@comverse.com> wrote:
> I need to run Java2WSDL on a class that is in a jar file because all the
> dependencies (imported classes) are also in the jar file.
>
>
>
> Is this possible to do? If so, can anyone show me the syntax?
>
>
>
> Thanks,
>
> Steve
>