• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

reg the tomcat 5.0.16 console errors

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 at the console *************/
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 at the console ****************/
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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by nash avin:
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 at the console *************/
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 at the console ****************/
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

 
Michael Rommerskirchen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by nash avin:
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 at the console *************/
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 at the console ****************/
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



Hi,
try to use as docbase only 'sampleapp' instaed of 'e:\sampleapp'.
Michael
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The 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


Is telling you whats wrong. Your entry in server.xml is telling Tomcat to look for the web application in the absolute path e:\sampleapp but you have put the application under webapps.
Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic