| Author |
Ant script error in Websphere Application server 6.1
|
Mithila Paineni
Greenhorn
Joined: Jun 18, 2008
Posts: 3
|
|
Hi, I'm able to create Ear using WSAD 5.1. I'm migrating to Websphere Application server 6.1. I'm using IBM WAS express v6.1 and AST v6.1.4, and Java version = J2RE 1.5.0 and EJB 2.0 & Ant 1.6.5, I'm able to run the application with AST, while creating ear using ANT script i'm getting the following error. Buildfile: C:\PModelRel54View\mpainen_PricingModel_CMODS_Development_3\CMODS\PricingModel\build.xml clean: [delete] Deleting directory C:\pricingmodelEar\output [delete] Deleting directory C:\pricingmodelEar\log builddir: [mkdir] Created dir: C:\pricingmodelEar\output [mkdir] Created dir: C:\pricingmodelEar\log init: [echo] Pricing Model Build started at 2008-06-18.10.04.54... [echo] Build Type : UAT [echo] Base Folder : C:/PModelRel54View/mpainen_PricingModel_CMODS_Development_3/CMODS [echo] Output Folder :c:/pricingmodelEar/output [echo] Log Folder : c:/pricingmodelEar/log buildAll: init: [echo] Build of PricingModelFactorProcessing started at 2008-06-18.10.04.54 for environment: UAT [echo] The base directory is C:/PModelRel54View/mpainen_PricingModel_CMODS_Development_3/CMODS getProjectData: BUILD FAILED C:\PModelRel54View\mpainen_PricingModel_CMODS_Development_3\CMODS\PricingModel\build.xml:24: The following error occurred while executing this line: C:\PModelRel54View\mpainen_PricingModel_CMODS_Development_3\CMODS\PricingModel\ProjectBuild.xml:13: Could not create task or type of type: getProjectData. Ant could not find the task or a class this task relies upon. 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 'getProjectData'. 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 the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built 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 <taskdef>. - You are attempting to use a task defined using <presetdef> or <macrodef> but have spelt wrong or not defined it at the point of use 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 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. Total time: 531 milliseconds Can any one help me out please I have build.properties and build.xml and ProjectBuild.xml the 3 files i have for Ant script. Thanks,-Mithila
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26489
|
|
Mithila, Welcome to JavaRanch! I can think of two things that would cause such a message and they would depend on how you are running Ant. 1) If you are running ant from the command line, make sure you are using IBM's runant.bat script rather than pure Ant. This is needed in using the task to setup the environment. 2) If you are running ant from Eclipse, make sure you have it set to run in the same JRE as the workspace.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Mithila Paineni
Greenhorn
Joined: Jun 18, 2008
Posts: 3
|
|
Hi Jeanne, Thanks for quick reply. I'm running Ant from IBM Websphere Application Server Toolkit 6.1.1.4 and Websphere 6.1 I'm running under same JRE as the workspace. Thanks,-Midhila
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26489
|
|
Originally posted by Mithila Paineni: I'm running Ant from IBM Websphere Application Server Toolkit 6.1.1.4 and Websphere 6.1
I'm not familiar with WAS Toolkit. Is that an IDE or an app server tool? It it's IDE, check the workspace preferences to make sure the task is defined. If it is part of the app server, take a look at the command line section of this article for how to run IBM tasks.
|
 |
Mithila Paineni
Greenhorn
Joined: Jun 18, 2008
Posts: 3
|
|
Its an IDE like Eclipse we need to plug in Websphere 6.1 to IBM Websphere AST.I tried setting all the variable slike PATH, CLASSPATH, HANT_HONMe and JAVA_HOME set PATH=C:\Program Files\IBM WAS ASTV6.1\eclipse\plugins\org.apache.ant_1.6.5\bin;%PATH%; set ANT_HOME=C:\Program Files\IBM WAS ASTV6.1\eclipse\plugins\org.apache.ant_1.6.5 set JAVA_HOME=""C:\Program Files\IBMWAS Express6.1\java"" set CLASSPATH=C:\Program Files\IBM WAS ASTV6.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\Program Files\IBMWAS Express6.1\java\lib\tools.jar;%CLASSPATH% I'm getting th same error, If any one can help me on this. Thanks,-Mithila
|
 |
 |
|
|
subject: Ant script error in Websphere Application server 6.1
|
|
|