File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes How to pass tomcat-users.xml filea path to catalina.sh? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to pass tomcat-users.xml filea path to catalina.sh?" Watch "How to pass tomcat-users.xml filea path to catalina.sh?" New topic
Author

How to pass tomcat-users.xml filea path to catalina.sh?

nilesh bhattad
Greenhorn

Joined: Jan 15, 2003
Posts: 8
Hi,

We have a script setup in Solaris environment that starts Tomcat 5.0.28 server. The script is generic for different environments and we pass server.xml file path using "-config" parameter to catalina.sh

Now our requirement is to pass tomcat-users.xml file path as well as a command line argument to catalina.sh. Is there anyway I could specify which tomcat-users.xml file path when starting up Tomcat using "catalina.sh run" command?

Thanks in advance!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

In server.xml:


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass tomcat-users.xml filea path to catalina.sh?