Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 9339 invoked from network); 15 Feb 2008 14:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2008 14:42:30 -0000 Received: (qmail 9131 invoked by uid 500); 15 Feb 2008 14:42:15 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 9118 invoked by uid 500); 15 Feb 2008 14:42:15 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 9097 invoked by uid 99); 15 Feb 2008 14:42:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 06:42:15 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.118.49.220] (HELO ns6.comverse.com) (192.118.49.220) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 14:41:41 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.25,358,1199656800"; d="scan'208,217";a="173356805" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C86FE0.9AFB82D3" Subject: RE: Run Java2WSDL on Class in Jar File? Date: Fri, 15 Feb 2008 07:41:32 -0700 Message-ID: <1127E556580A274B90153962447F9C01ED7F6F@us-dnv-mail01.comverse.com> In-Reply-To: <51e581cd0802141721m687534b4t6f114a2a816d7861@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Run Java2WSDL on Class in Jar File? Thread-Index: AchvcPqllss2zR9sSqKyJwQevfL3gAAb6D2w References: <1127E556580A274B90153962447F9C01ED79E0@us-dnv-mail01.comverse.com> <51e581cd0802131914q35edb81eubb35c32daa89abe@mail.gmail.com> <1127E556580A274B90153962447F9C01ED7E55@us-dnv-mail01.comverse.com> <51e581cd0802141721m687534b4t6f114a2a816d7861@mail.gmail.com> From: "Murphy Steve" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C86FE0.9AFB82D3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Upal, Martin Gainty, and David Kraus. =20 I did Upal's recommended change of using a space instead of semicolons and it worked! =20 (I'm very happy now.) =20 Steve =20 =20 ________________________________ From: Upul Godage [mailto:upulg.dev@gmail.com]=20 Sent: Thursday, February 14, 2008 6:22 PM To: axis-user@ws.apache.org Subject: Re: Run Java2WSDL on Class in Jar File? =20 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 wrote: Hi Upal, =20 I can't get this to work. I'm working on windows and I created a batch file that looks like this: =20 %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 =20 (I had to change names because of confidentiality issues.) =20 I received the following error: =20 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 =20 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. =20 Can you see any errors? =20 Thanks and regards, Steve =20 ________________________________ From: Upul Godage [mailto:upulg.dev@gmail.com]=20 Sent: Wednesday, February 13, 2008 8:14 PM To: axis-user@ws.apache.org Subject: Re: Run Java2WSDL on Class in Jar File? =20 ./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 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. =20 Is this possible to do? If so, can anyone show me the syntax? =20 Thanks, Steve =20 =20 ------_=_NextPart_001_01C86FE0.9AFB82D3 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 <Stephen.Murphy@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 <Stephen.Murphy@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

 

 

------_=_NextPart_001_01C86FE0.9AFB82D3--