This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Spring and the fly likes Spring 3.x + ant 1.7.x Build problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Spring 3.x + ant 1.7.x Build problem" Watch "Spring 3.x + ant 1.7.x Build problem" New topic
Author

Spring 3.x + ant 1.7.x Build problem

Pranav Nakate
Greenhorn

Joined: Aug 29, 2011
Posts: 9
Hi,

I created a Spring project and it runs fine when i create a WAR using Eclipse built-in service for doing so...deploys properly and everything...

i wrote an Ant build file [ build.xml ] to build this project...i deployed it on the same Apache Tomcat server...with this
the home page opens correctly...but whenever a request is hit, the application crashes...

below is my build xml ...



below is the error i get...



Please tell me what i am missing...

seems that i am missing some configuration in build.xml, which is causing some classpath mismatch with tomcat
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282

Not directly answering your question here is but is there a reason you are set on ANT? Spring projects are much easier to build with Maven and there are tons of examples out there showing how to do this.


[How To Ask Questions][Read before you PM me]
Pranav Nakate
Greenhorn

Joined: Aug 29, 2011
Posts: 9
makes sense...

moving to Maven!

Thanks for the quick reply Bill!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring 3.x + ant 1.7.x Build problem
 
Similar Threads
ant exception
Building a war in eclipse using ant
unable to create War using Ant
war from ant not running
Which IDE support JSP 2.0