Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Tomcat 6 Error Deployment - java.lang.IllegalArgumentException: Document base

Posted on 2009-02-15
Medium Priority
Last Modified: 2013-12-02
Hi All,

I have a Tomcat 6 Error Deployment - java.lang.IllegalArgumentException: Document base

My app was running fine when I deployed it to Tomcat as myApp.war.

I wanted to run it as ROOT.war. It still works fine. BUT...

I am getting this error in my catalina.out file.

The strange is that the application is running fine?


Feb 15, 2009 3:33:38 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /opt/apache-tomcat-6.0.18/webapps/myApp does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3957)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

Open in new window

Question by:nohacks
  • 2
LVL 92

Accepted Solution

objects earned 2000 total points
ID: 23646732
just deleting the directory does not remove the context.
you need to also remove the context file
should be something like


Author Comment

ID: 23646749
Oh yes...I left that out...let me check it now...thanks for your response.

I will get back to you asap.



Author Closing Comment

ID: 31547161
Thanks Works great

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question