Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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?
 
Similar Threads
How to pass the -D parameter in the tomcat startup script?
Tomcat 5.5 complains about missing log.properties
Tomcat - Linux gettin alert msgs after installation
Problem in printing a pdf file using pdfrenderer
How to update Tomcat's JVM in Linux?