tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kintzer <>
Subject resource files not found in /WEB-INF/classes
Date Wed, 13 Feb 2002 02:56:38 GMT
Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
associated resource files required for an application "mywebapp".  I have
placed a properties file "" in my /WEB-INF/classes/
directory but when I try to access it using this code:

package com.myco.myproj

.. imports and other code...

	File f = new File("");
	FileInputStream fis = new FileInputStream(f);
	Properties prop = new Properties();
catch (Exception e)

I continually get (The
system cannot find the file specified).

I even tried adding a context element in my conf/server.xml file for my web
app like so:

<!-- myproj context -->
	<Context path="/myproj" docBase="myproj" debug="0" reloadable="true"

but that had no effect.    I've searched through all the documentation I
could find and it all seems to indicate that any resource files in
/WEB-INF/classes should be detectable.  Any ideas on what I may be doing
incorrectly would be greatly appreciated.


Michael Kintzer

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