• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant script error in Websphere Application server 6.1

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Mithila Paineni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic