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.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Make CLASSPATH work in Tomcat 4.1.12

 
Ranch Hand
Posts: 209
1
  • 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
  • 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.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 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.
 
Greenhorn
Posts: 20
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!