Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 3207 invoked from network); 30 Jun 2004 23:44:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Jun 2004 23:44:55 -0000 Received: (qmail 47440 invoked by uid 500); 30 Jun 2004 23:40:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 47403 invoked by uid 500); 30 Jun 2004 23:40:16 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 68931 invoked by uid 99); 30 Jun 2004 16:21:08 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C45EBE.5A89877A" Subject: how to automate the java2wsdl using ant? Date: Wed, 30 Jun 2004 22:21:52 +0600 Message-ID: <28B8E04BCFBEB74B9B19F765DE6598E903054E58@enetslmaili.enetsl.virtusa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to automate the java2wsdl using ant? Thread-Index: AcRevlpuLhzutnZ9S9KsKdSCoSWHtA== From: "Lalith Weerasinghe" To: Cc: "Lalith Weerasinghe" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C45EBE.5A89877A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1 Hi, =20 Can u pls let me know how to use this axis-java2wsdl task or and way to automate java2wsdl command in java which we use in command line as=20 =20 java org.apache.axis.wsdl.Java2WSDL -o wsdl/SimpleWebService.wsdl=20 -l"http://localhost:8080/rti/services/SimpleWebService" -n"http://rti.ascential.com/SimpleWebService/" -p"com.ascentialsoftware.ws.rpc.common" "http://rti.ascential.com/SimpleWebService/" com.ascentialsoftware.ws.rpc.common.SimpleWebService =20 How i tried in my buil.xml is as follows(i used to hard code parameters as for the trial) =20 "=20 output=3D "C:/devspace17062004/development/qa/inputs/rti/WSPackNLSTestsTC/WrittenR pcWS/ATFWSPackCustomerService.wsdl ">=20 =20 =20 =20 =20 =20 Then i'm getting an error like this.... =20 C:\devspace17062004\development\qa\inputs\rti\WSPackNLSTestsTC\WrittenRp cWS>ant generate-wsdl Buildfile: build.xml =20 compile: =20 generate-wsdl: =20 BUILD FAILED file:C:/devspace17062004/development/qa/inputs/rti/WSPackNLSTestsTC/Writ tenRpcWS/build.xml:202: Could not create task or type of type: axis-java2wsdl. =20 Ant could not find the task or a class this task relies upon. =20 This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'axis-java2wsdl'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and optional.jar is absent Fix: look for optional.jar in ANT_HOME/lib, download if needed - The task was not built into optional.jar as dependent libraries were not found at build time. Fix: look in the JAR to verify, then rebuild with the needed libraries, or download a release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using . =20 Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath =20 Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. =20 Total time: 1 second =20 I tried in may ways but time to time it is giving different errors and making me confused. =20 pls help me to get this target work. Thanks & Regards,=20 Lalith Weerasinghe,=20 --------------------------- Associate Software Engineer=20 ASCENTIAL-WSQA=20 Virtusa (Sri Lanka) Private Limited=20 Trans Asia Commercial Complex=20 No. 117, Sir Chittampalam A. Gardiner Mw.=20 Colombo 2, Sri Lanka.=20 Office: +94 (0) 11 4702352=20 E-mail: lweerasinghe@virtusa.com=20 Website: www.virtusa.com=20 =20 -------------------------------------------------------------------------= -------------------------=0AThis message, including any attachments, cont= ains confidential information intended for a specific individual and purp= ose, and is intended for the addressee only. Any unauthorized disclosure= , use, dissemination, copying, or distribution of this message or any of = its attachments or the information contained in this e-mail, or the takin= g of any action based on it, is strictly prohibited. If you are not the = intended recipient, please notify the sender immediately by return e-mail= and delete this message.=20 ------_=_NextPart_001_01C45EBE.5A89877A--