RE: Run Java2WSDL on Class in Jar File?
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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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?
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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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?
Shouldn't the jar file specs be separated by ; (semicolon), not : (colon) ? From: Murphy Steve [mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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?
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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED] *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 [EMAIL PROTECTED] 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?
./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 [EMAIL PROTECTED] 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