You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Avinash Sridhar <sm...@rediffmail.com> on 2004/02/01 16:24:50 UTC
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
Re: Tomcat 5.0.16 startup console error
Posted by Dima Gutzeit <di...@mailvision.net>.
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" <sm...@rediffmail.com>
To: <to...@jakarta.apache.org>
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@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 5.0.16 startup console error
Posted by BAO RuiXian <ru...@pp.inet.fi>.
Avinash Sridhar wrote:
>[snip...]
>/********************* 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
>
>[snip...]
>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************************************/
>
>
I don't understand why you want to have the docBase as "e:\sampleapp"
while your directory structure is like /TOMCAT_HOME/webapps/sampleapp?
Please try set docBase as "sampleapp".
Best
Bao
>Kindly help me out.
>
>Any help would be appreciated
>
>Thanks
>AS
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org