tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avinash Sridhar" <smartnas...@rediffmail.com>
Subject Tomcat 5.0.16 startup console error
Date Sun, 01 Feb 2004 15:24:50 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message