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: [email protected] 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: [email protected] 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
