wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant messing up tomcat" Watch "ant messing up tomcat" New topic
Author

ant messing up tomcat

Wendy Gibbons
Bartender

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: 15961
    
  19

/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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Wendy Gibbons
Bartender

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: http://aspose.com/file-tools
 
subject: ant messing up tomcat
 
Similar Threads
Eclipse and Jforum
HibernateException: JDBC Driver class not found: oracle.jdbc.driver.OracleDriver
not picking up the j2ee.jar
Project directory structure that facilitates all kinds of developer testing
Error importing class