• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CATALINA_OPTS in server.xml

 
Sahiti Verma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

Can I specify CATALINA_OPTS in my server.xml rather than the startup script ?

TIA
Sahiti V
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Sahiti!

I wouldn't. I'm not sure how easy it would be in any event, since server.xml is an XML file digested by Tomcat, not a general-purpose script.

However, if you create a file in the TOMCAT bin directory named "setenv.sh" (Unix/Linux) or "setenv.bat" (Windows), you can assign environment variables in that file and the catalina script will use them.

The file format is the same as any other script file that sets environment variable values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic