We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

nohacks
nohacks asked
on
Medium Priority
4,787 Views
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?

Thanks
Phil

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

Comment
Watch Question

Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
just deleting the directory does not remove the context.
you need to also remove the context file
should be something like
/conf/Catalina/localhost/myApp.xml

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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

I will get back to you asap.


Phil

Author

Commented:
Thanks Works great
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.