1

I have installed apache-tomcat 8.0.30 in etc folder. How can I find the tomcat's user directory in ubuntu?

Which one is tomcat's user directory? what is meant by user directory? is it the configuration directory? temp directory?there are so many directories.

I am following an instruction on a tutorial and it say's tomcat's user directory but I am not sure which directory it means.

Also when I install tomcat in etc folder, does it create a directory in /usr/share/tomcat{X} ? because there was none but I created it and I don't think the tutorial means this folder because it was not created during installation.

thanks!

ubuntuser
  • 81
  • 1
  • 2
  • 6

1 Answers1

0

There are three important directories for Tomcat:

 /etc/tomcat{X} for configuration 

 /etc/tomcat{X} for runtime, called CATALINA_HOME

 /usr/share/tomcat{X}-root for webapps

The alternative path to Tomcat, called CATALINA_BASE, is

   /var/lib/tomcat{X}

The temp folder for Tomcat is

  /tmp/tomcat{X}-tomcat{X}-tmp

All the above paths work for Tomcat 6, 7, and 8.

Replace {X} with the appropriate Tomcat major version number, e.g.

 /etc/tomcat8.

It should work