I’m running Tomcat 6 on Ubuntu.
I have webapps stored outside the webapps folder of tomcat6, I used to symlink them and it worked like a charm.
For instance, in /var/lib/tomcat6/webapps/, I have a symlink ‘webapp1’ pointing to ~/webapp1, which has the proper content for a webapp.
It works fine, webapp1 is up and running in the blink of an eye.
Now if I create another link to /media/someotherdisk/webapp2, it doesn’t work at all.
webapp2 has the required content to be detected, it has the same access rights as webapp1, as well for the content itself. I checked all I could think of and I don’t understand the difference for Tomcat.
So why is it acting this way? And how can I make it to work the same as for ‘webapp1’?
In the end it was a simple permission problem.
/media/someotherdisk/webapp2/was alright (+rx for anyone) but/media/someotherdisk/had no permission set except for the its owner.I dont know why it was this way for this partition in particular and not for the other mounted partitions, but changing permissions solved my problem.