[Bug 294277] [NEW] Tomcat 6 missing directory "Catalina" in /etc/tomcat6 - so impossible to deploy webapp

Vincent vincent.davy1 at free.fr
Wed Nov 5 18:36:33 GMT 2008


Public bug reported:

Binary package hint: tomcat6

Hi,

On ubuntu 8.10, the conf directory for tomcat6 is located in /etc/tomcat6, and this directory is not writable for tomcat6 user, which one tomcat6 process is executed under.
Tomcat 6 version is 6.0.18-0ubuntu3

However, if you try to deploy a webapp with a META-INF/context.xml you can't get it working because when you put a webapp to tomcat to have it autodeployed, tomcat will copy the META-INF/context.xml picked up from the war file to [tomcat-home]/conf/Catalina/localhost/webappname.xml
Here "Catalina" and "localhost" depend on your service name and virtual host name.
"[tomcat-home]/conf/" is "/etc/tomcat6" on the file system.

But due to the fact that the /etc/tomcat6 is not tomcat6 user writable,
tomcat can't create subdirectories "Catalina/localhost/webappname.xml"
so your webapp can't have its context setted and it won't start access
the database you setted in a datasource in the context.xml file.

I solved the problem creating a directory named "Catalina" (take care about the case) under /etc/tomcat6, chowned it to tomcat6:tomcat6 and restarting tomcat.
After restarting, it created the subdirectories listed above.

I think this directory must be available at the installation of tomcat6.

This took me an afternoon to discover it and drove me a bit cray.

Sorry for this awful engish - I'm french. That means all.

** Affects: tomcat6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Tomcat 6 missing directory "Catalina" in /etc/tomcat6 - so impossible to deploy webapp
https://bugs.launchpad.net/bugs/294277
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.



More information about the Ubuntu-server-bugs mailing list