Question

I can't find it my tomcat.conf, I have looked in /etc/tomcat6, but it's not there, either in /usr/share/tomcat6.

Where can I find the tomcat.conf in Linux Ubuntu?

Was it helpful?

Solution

There is no means of a tomcat.conf file in a default and plain vanilla Tomcat installation. You however can find several configuration files in the /conf folder. Details/manuals about those can be found at the Apache Tomcat Configuration Reference.

Hope this helps.

OTHER TIPS

Try:

sudo updatedb
locate tomcat.conf | less

tomcat.conf is a file that the RedHat RPM package of Tomcat installs. See here. It's actually a nice way of managing tomcat config stuff in a file rather than environment variables.

Not sure what you're looking for but here is the filelist of the package tomcat6 on karmic:

/etc/cron.daily/tomcat6
/etc/default/tomcat6
/etc/init.d/tomcat6
/etc/tomcat6/catalina.properties
/etc/tomcat6/context.xml
/etc/tomcat6/logging.properties
/etc/tomcat6/policy.d/01system.policy
/etc/tomcat6/policy.d/02debian.policy
/etc/tomcat6/policy.d/03catalina.policy
/etc/tomcat6/policy.d/04webapps.policy
/etc/tomcat6/policy.d/50local.policy
/etc/tomcat6/server.xml
/etc/tomcat6/tomcat-users.xml
/etc/tomcat6/web.xml
/usr/share/doc/tomcat6/changelog.Debian.gz
/usr/share/doc/tomcat6/copyright
/usr/share/tomcat6/webapps/default_root/META-INF/context.xml
/usr/share/tomcat6/webapps/default_root/index.html
/var/lib/tomcat6/conf
/var/lib/tomcat6/logs
/var/lib/tomcat6/work

You may check that by:

$ dpkg -L tomcat6 tomcat6-common | grep tomcat.conf

The tomcat-users.xml file is located in the Tomcat install directory of the etc directory.

For instance. From root:

cd /etc/tomcat(ENTER-YOUR-TOMCAT-VERSION-HERE)/tomcat-users.xml

In my system I have Tomcat7 installed so my path was"

/etc/tomcat7/tomcat-users.xml

If you are running Docker container based on alpine all the configuration you can find inside conf.

/usr/local/tomcat/conf 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top