Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Error building a Project using Ant

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm new to Java and trying to do the following tutorial on Spring:

http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html

I'm getting the following error when i try build a Project using Ant:

C:\Users\Orby\workspace\Springapp>Ant
Buildfile: build.xml

BUILD FAILED
C:\Users\Orby\workspace\Springapp\build.xml:85: taskdef class org.apache.catalin
a.ant.InstallTask cannot be found

Total time: 0 seconds

My Ant build.properties file looks like:



and i found another URL referring to the same error:

https://coderanch.com/t/108299/tools/Error-while-running-ant-InstallTask

but i'm not sure what i need to do with the classpath in order to resolve this issue?

Any help on this would be appreciated.

Thanks,

O.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a thread about this same problem, maybe this will help.
 
Orby Sullivan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response! I had read that article earlier and changed the slashes in my build.properties file but it hasn't resolved my error.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to Javaranch Orby!
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a file "bin/catalina-tasks.xml" in your Tomcat install; read the comments there and import the file. Otherwise the tasks themselves are in server/lib/catalina-ant.jar, so you need to add that to your classpath, and possibly other jars as well.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic