[axis2] Unknown Constant Tag Error Encountered When Using java2wsdl
Hi, I'm running java2wsdl on a class file and got the following error: Exception in thread main java.lang.ClassFormatError: Unknown constant tag 13 in class file MyClass I'm using Axis2 1.3. Research on the web tells me that this is potentially due to a difference in the java version that was used to compile MyClass and the java version that Axis needs to run java2wsdl. If this is correct, can anyone tell me what java version I need to run java2wsdl? If I'm all wrong about this, please let me know what the error means. In ignorance, Steve
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
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: Is Axis for Me?
Azeez, Thanks so much for both of your responses. I'll be in touch if I need any help. Regards, Steve From: Afkham Azeez [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 12, 2008 12:27 AM To: axis-user@ws.apache.org Subject: Re: Is Axis for Me? On Tue, Feb 12, 2008 at 4:38 AM, Murphy Steve [EMAIL PROTECTED] wrote: I'm a web services beginner and I need to create client applications for existing web services that are running in a Web Logic server. I need to know: 1. Can I use Axis to create clients that use the web services? Yes, definitely. This is a basic requirement of any Web services framework 2. If the answer to question 1 is yes then which Axis2 download do I use? The last stable release was Axis2 1.3 (http://ws.apache.org/axis2/download/1_3/download.cgi) Thanks. -- Thanks Afkham Azeez http://azeez78.blogspot.com http://www.wso2.org GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
Is Axis for Me?
I'm a web services beginner and I need to create client applications for existing web services that are running in a Web Logic server. I need to know: 1. Can I use Axis to create clients that use the web services? 2. If the answer to question 1 is yes then which Axis2 download do I use? Thanks.