File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Make CLASSPATH work in Tomcat 4.1.12

 
Justin Chu
Ranch Hand
Posts: 209
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Justin Chu
Ranch Hand
Posts: 209
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
smercmu
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic