Change the following in the server.xml :
<Context path="/sampleapp" docBase="sampleapp/" debug="0" reloadable="true">
</Context>
As I see from you configurations, the docbase of you application is the
webapps directory of Tomcat and not at e:\ ...
----- Original Message -----
From: "Avinash Sridhar" <smartnash78@(protected)>
To: <tomcat-user@(protected)>
Sent: Sunday, February 01, 2004 5:24 PM
Subject: Tomcat 5.0.16 startup console error
Hi,
I am trying to get a simple servlet running using tomcat 5.0.16.I had posted
the problem previously,but I dont know why it was ignored,plz dont ignore
this too.
Here is the problem I am facing.......
While I startup tomcat,I get the following error,
/********************* Start of Error message **************/
SEVERE: Cannot find message associated with key
standardContext.resourcesStart
java.lang.IllegalArgumentException: Document base E:\sampleapp does not
exist or
is not a readable directory
/*********************End of Error message *******************/
The directory structure is as follows............
/TOMCAT_HOME/webapps/sampleapp
/TOMCAT_HOME/webapps/sampleapp/WEB-INF
/TOMCAT_HOME/webapps/sampleapp/WEB-INF/classes
/TOMCAT_HOME/webapps/sampleapp/WEB-INF/lib
/TOMCAT_HOME/webapps/sampleapp/WEB-INF/sourcefiles
/TOMCAT_HOME/webapps/sampleapp/WEB-INF/web.xml
The content of web.xml is as follows.....................
/**********************Start of web.xml ***********************/
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Servlet 2.4 Examples</display-name>
<description> Servlet 2.4 Examples </description>
<!-- Servlet mapping start -->
<!-- Define servlets. i.e. bind a servlet name to a class -->
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>HelloServlet</servlt-class>
</servlet>
<!-- bind a servlet name to a URL (pattern) -->
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/sampleapp</url-pattern>
</servlet-mapping>
<!-- Servlet mapping end -->
</web-app>
/********************************* End of web.xml
*****************************/
Now I have modified the server.xml file in the
TOMCAT_HOME/conf/server.xml................like this,just a line
/******************************* server.xml
***********************************/
<Context path="/sampleapp" docBase="e:\sampleapp" debug="0"
reloadable="true">
</Context>
/*****************************server.xml************************************
/
Kindly help me out.
Any help would be appreciated
Thanks
AS
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)