title: Eclipse: Error starting static Resources java.lang.IllegalArgumentException
body: <p>I have a project called myproject2 in my Eclipse IDE. I have a Tomcat application server and I can add there the resource myproject2 (it is a Spring MVC project).</p>
  
  <p>Now I closed the myproject2 in Eclipse, removed myproject2 from the Tomcat resources and do a fresh Subversion checkout with projectname: myproject3.</p>
  
  <p>REstarting the IDE I want to set myproject3 to the Tomcat server so this should be deployed. But all what is available is myproject2 to choose. So I choose it. I can access <a href="http://localhost:8080/myproject2/" rel="nofollow">http://localhost:8080/myproject2/</a> but I get this warning and serve in the console:</p>
  
  <pre><code>14.12.2010 11:43:11 org.apache.catalina.startup.HostConfig deployDescriptor
  WARNING: A docBase C:\Spring\apache-tomcat-6.0.29-windows-x86\apache-tomcat-6.0.29\webapps\myproject2 inside the host appBase has been specified, and will be ignored
  14.12.2010 11:43:11 org.apache.catalina.core.StandardContext resourcesStart
  SERVE: Error starting static Resources
  java.lang.IllegalArgumentException: Document base C:\Spring\apache-tomcat-6.0.29-windows-x86\apache-tomcat-6.0.29\webapps\myproject3 does not exist or is not a readable directory
  at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
  at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4249)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4418)
  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:546)
  at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
  at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
  at org.apache.catalina.core.StandardService.start(StandardService.java:519)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  14.12.2010 11:43:11 org.apache.catalina.core.StandardContext start
  SERVE: Error in resourceStart()
  14.12.2010 11:43:11 org.apache.catalina.core.StandardContext start
  SERVE: Error getConfigured
  14.12.2010 11:43:11 org.apache.catalina.core.StandardContext start
  SERVE: Context [/myproject3] startup failed due to previous errors
  14.12.2010 11:43:11 org.apache.catalina.core.StandardContext stop
  INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myproject3] has not been started
  </code></pre>
  
  <p>So what's wrong here? Why don't I have a myproject3 to choose what should be deployed in Tomcat?</p>
  
  <p>Does anyone know?</p>
  
  <p>Best Regards.</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p><strong>.project (myproject2)</strong>:</p>
  
  <pre><code>&lt;projectDescription&gt;
      &lt;name&gt;myproject&lt;/name&gt;
      &lt;comment&gt;My-Project. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.&lt;/comment&gt;
      &lt;projects/&gt;
      &lt;buildSpec&gt;
          &lt;buildCommand&gt;
              &lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt;
          &lt;/buildCommand&gt;
      &lt;/buildSpec&gt;
      &lt;natures&gt;
          &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;
      &lt;/natures&gt;
  &lt;/projectDescription&gt;
  </code></pre>
  
  <p><strong>.project (myproject3)</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;projectDescription&gt;
      &lt;name&gt;myproject&lt;/name&gt;
      &lt;comment&gt;&lt;/comment&gt;
      &lt;projects&gt;
      &lt;/projects&gt;
      &lt;buildSpec&gt;
          &lt;buildCommand&gt;
              &lt;name&gt;org.eclipse.wst.jsdt.core.javascriptValidator&lt;/name&gt;
              &lt;arguments&gt;
              &lt;/arguments&gt;
          &lt;/buildCommand&gt;
          &lt;buildCommand&gt;
              &lt;name&gt;org.eclipse.wst.common.project.facet.core.builder&lt;/name&gt;
              &lt;arguments&gt;
              &lt;/arguments&gt;
          &lt;/buildCommand&gt;
          &lt;buildCommand&gt;
              &lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt;
              &lt;arguments&gt;
              &lt;/arguments&gt;
          &lt;/buildCommand&gt;
          &lt;buildCommand&gt;
              &lt;name&gt;org.eclipse.wst.validation.validationbuilder&lt;/name&gt;
              &lt;arguments&gt;
              &lt;/arguments&gt;
          &lt;/buildCommand&gt;
          &lt;buildCommand&gt;
              &lt;name&gt;org.maven.ide.eclipse.maven2Builder&lt;/name&gt;
              &lt;arguments&gt;
              &lt;/arguments&gt;
          &lt;/buildCommand&gt;
      &lt;/buildSpec&gt;
      &lt;natures&gt;
           &lt;nature&gt;org.eclipse.jem.workbench.JavaEMFNature&lt;/nature&gt;
           &lt;nature&gt;org.eclipse.wst.common.modulecore.ModuleCoreNature&lt;/nature&gt;
           &lt;nature&gt;org.maven.ide.eclipse.maven2Nature&lt;/nature&gt;
           &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;
           &lt;nature&gt;org.eclipse.wst.common.project.facet.core.nature&lt;/nature&gt;
           &lt;nature&gt;org.eclipse.wst.jsdt.core.jsNature&lt;/nature&gt;
      &lt;/natures&gt;
  &lt;/projectDescription&gt;
  </code></pre>