Wednesday, February 13, 2008

Document base /path/to/ROOT does not exist or is not a readable directory

I recently installed tomcat 5.5 on my slicehost, and it was somewhat painful, probably because i deviated from the basic setup so much.
Anyway, one last error (in /var/log/tomcat5.5/catalina.out) that i was getting was this:

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/mk/public_html/ROOT does not exist or is not a readable directory

I was setting up my app context path using CATALINA_HOME/conf/Catalina/localhost/ROOT.xml and so it was strange that tomcat was looking for a directory called ROOT.


I was overlooking this warning before the error:
WARNING: A docBase /home/mk/public_html/ inside the host appBase has been specified, and will be ignored

the problem was that i set my appBase inside of /etc/tomcat5.5/conf/server.xml to be /home/mk/public_html/ and this was a parent directory of app's docBase.

Changing the appBase to /home/mk/public_html/webapps solved this problem.


  1. Thanks! Saved my day!

  2. FYI, it's really eye-straining to read any of the text on this page against the black background.

  3. Oh? i will take that into consideration. Ive always liked white on black, its really nice in a dark room.

  4. Hey, I came across this prob in Vista in my laptop, did you already figure out what to do? Thanks man.