Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On apache tomcat

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\

we can change folders for another by specify it in XML like: THE_FOLDER.xml and in that xml we can change that THE_FOLDER path

<Context path="/MF_PHRASES" reloadable="true" docBase="C:\Projects\Customers\test\phrases" workDir="C:\Projects\Customers\test\phrases" />

but it doesn't work for folder located on other server:

<Context path="/MF_PHRASES" reloadable="true" docBase="\\\c$\Projects\Customers\test\phrases" 
workDir="\\\c$\Projects\Customers\test\phrases" />

not working

Tried 2 methods:

1) mapping through network drive, got the error:

SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base Z:\Projects\Customers\test\phrases does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase( at org.apache.catalina.core.StandardContext.resourcesStart(‌​9) at org.apache.catalina.core.StandardContext.start( at org.apache.catalina.core.ContainerBase.addChildInternal(

2) file://$/Projects/Customers/test/phrases

SEVERE: Error deploying configuration descriptor MF_PHRASES_NEW.xml The filename, directory name, or volume label syntax is incorrect at Method) at Source) at Source) at org.apache.catalina.startup.HostConfig.deployDescriptor( at org.apache.catalina.startup.HostConfig.deployDescriptors(

is there any way to make it work?

share|improve this question
Is tomcat running as a user that has access to that share? – mahnsc May 19 '12 at 15:56

In the first case, like mahnsc said, looks like its a permission thing. The user that owns Tomcat cannot read/write in that directory. In the second case, it's more possible that the docBase attribute does not understand paths containing IP addresses.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.