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

Posted on 2009-02-15
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(

at org.apache.catalina.core.StandardContext.resourcesStart(

at org.apache.catalina.core.StandardContext.start(

at org.apache.catalina.core.ContainerBase.addChildInternal(

at org.apache.catalina.core.ContainerBase.addChild(

at org.apache.catalina.core.StandardHost.addChild(

at org.apache.catalina.startup.HostConfig.deployDescriptor(

at org.apache.catalina.startup.HostConfig.deployDescriptors(

at org.apache.catalina.startup.HostConfig.deployApps(

at org.apache.catalina.startup.HostConfig.start(

Open in new window

Question by:nohacks
    LVL 92

    Accepted Solution

    just deleting the directory does not remove the context.
    you need to also remove the context file
    should be something like


    Author Comment

    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

    Thanks Works great

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now