File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant messing up tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant messing up tomcat" Watch "ant messing up tomcat" New topic

ant messing up tomcat

Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

when i run my ant script it seems to mess up tomcats environment variables

it stops being able to find all the jars, on this box the ALL jars are stored in usr/share/java and not tomcat/common/lib.

is this even possible?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

/usr/share/java is where (at least for RedHat/Fedora-style distros), the OS-supplied jars reside. Things like jdbc drivers and stuff like that. You really don't want to dump tomcat's internal jars in there. For one thing, they're not stuff you want to - ahem - "share".

I have been known to go the other direction, however, and place a softlink(s) in TOMCAT_HOME/lib to one or more JDBC driver jars in /usr/share/java. Tomcat's OK with that.

An IDE is no substitute for an Intelligent Developer.
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

thanks, i have gone for links (as i am just working on the customers box and don't feel comfortable making changes that big)
I agree. Here's the link:
subject: ant messing up tomcat
It's not a secret anymore!