I am having problems trying to get a simple
servlet to run on Tomcat6.0 on WinXP
I am seeing the following error
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\webapps\MyFristApp 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:3941)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4112)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
16-Feb-2007 22:48:59 org.apache.catalina.core.StandardContext start
My set up is as follows
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyFristApp
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyFristApp\Images
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyFristApp\META-INF
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyFristApp\WEB-INF\classes
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyFristApp\WEB-INF\lib
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyFristApp\WEB-INF\web.xml
In my server.xml file I have added the following
<Context path="/MyFirstApp" docBase="MyFirstApp" crossContext="true" debug="0" reloadable="true" trusted="false"></Context>
any one know whey I am seeing the error
java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\webapps\MyFristApp does not exist or is not a readable directory.
Thanks in advance for any help.
[ February 16, 2007: Message edited by: IdrisK ]
[ February 16, 2007: Message edited by: IdrisK ]
[ February 16, 2007: Message edited by: Bear Bibeault ]