This week's book giveaways are in the Cloud and AI/ML forums. We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line! See this thread and this one for details.
How to do that? I know that Tomcat 4.x doesn't use System CLASSPATH, I want to force it to use it.. It isn't too much to ask? I've tried editing setclasspath.sh file but I get
[ November 13, 2002: Message edited by: Chu Tan ]
posted 16 years ago
To elaborate the problem I'm facing. I've many machines with tomcat installed. These tomcat instances would like to share a common set of jars on a networked drive. If I use Tomcat's recommended method, I've to copy the jars to all the servers whenever there's an update. System CLASSPATH doesn't work in Tomcat 4.
Rather than 'forcing' Tomcat to do something that it was designed to specifically not do (and for a reason), and rather than introducing a single point of failure for multiple boxes (oops.. that network share went down)..
How about making the laborious process of deploying multiple jars to multiple places a breeze? Sounds like a job for ANT.
You can point to whatever classpath you want by modifying the setClasspath.bat file in the bin directory. I have had simular situations in which I map the network drive and use a drive letter in my classpath setting. The one major benefit of having tomcat use its own classpath rather than the system classpath is that tomcat won't crash if someone else logs into the machine and changes the enviroment variables. Personally, I set the catalina home and java home variables in the top of startup.bat, then in setclasspath.bat I set any classpath settings I need. HOpe that helps. I can paste in my files as examples if you still need help.