Tomcat 6 missing directory "Catalina" in /etc/tomcat6 - so impossible to deploy webapp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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/
Here "Catalina" and "localhost" depend on your service name and virtual host name.
"[tomcat-
But due to the fact that the /etc/tomcat6 is not tomcat6 user writable, tomcat can't create subdirectories "Catalina/
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.
Changed in tomcat6: | |
assignee: | nobody → tcarrez |
status: | Confirmed → In Progress |
Changed in tomcat6: | |
assignee: | tcarrez → nobody |
The "Catalina" directory gets installed when you install one of the applications packages (tomcat6-examples, tomcat6-docs, tomcat6-admin...). But you're right, it should be created by the tomcat6 package itself.
The question of making that directory writable by the tomcat6 user is a question of security/ policy/ feature tradeoff... So far we made the choice of not allowing Tomcat 6 to modify files below /etc by itself (and by doing so, we break some of the admin webapps features). However I didn't thought we were breaking autodeployment.
Just to be clear, by "autodeploying" you mean put WAR files into the appBase directory ? I thought tomcat would unpack those, but not copy the context.xml file to conf/Catalina/ localhost.