Unstable Terrain

Software development in the real world

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

leave a comment »

I discovered the easy technique where one can point Tomcat at a directory instead of copying stuff into the /webapps dir.

So, I created $CATALINA_HOME/conf/Catalina/localhost/ma.xml like so:

<Context path="/ma" docBase="/workspace/ma/target/ma" reloadable="true" />

After a few false starts (turns out that Tomcat on Windows doesn’t accept cygwin-style paths even when started from sygwin), I thought I had it sorted.

<Context path="/ma" docBase="d:\workspace\ma\target\ma" reloadable="true" />

but Tomcat was having none of it.

16/06/2011 5:04:23 PM org.apache.catalina.core.StandardContext resourcesStart
 SEVERE: Error starting static Resources
 java.lang.IllegalArgumentException: Document base D:\workspace\ma\target\ma does not exist or is not a readable directory

Turns out I was being stupid and forgot the trailing slash in the docBase.

Derp.

Advertisements

Written by Trent

June 16, 2011 at 6:04 pm

Posted in Software Development, Tools

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: