tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 吴熊敏 <...@ublearning.com>
Subject Re: Tomcat / WAR File; Classpath not recognised for properties file
Date Tue, 19 Jun 2007 06:04:03 GMT
The program's default classpath is app/WEB-INF/classes

so,you need to put the property files under this folder.

That means that when you developping,you should put property files under
the src folder.

On Mon, 18 Jun 2007 07:46:19 -0700 (PDT)
nformosa <nformosa@gmail.com> wrote:

> 
> Hi All,
> 
> I'm having trouble when deploying my WAR application. The War file contains
> mainly the WEB.xml, and index.html file and a number of required libraries,
> incudling the compiled src code i've written, All libraries are stored
> within the WEB-INF/libs which is correct. Along the libraries i have a
> folder called resources, which have a number of files used as properties
> files. 
> 
> The problem is that when i'm trying to access these files (property files)
> i'm givin a 'Not found' error, and mainly this is due to the fact that its
> looking in the bin folder of tomcat as its classpath! 
> 
> I'm accesing these files using relative paths ie: /resources/config.xml
> 
> How can i fix this problem? any ideas would really be appreciated!
> 
> thanks in advance
> Nick
> -- 
> View this message in context: http://www.nabble.com/Tomcat---WAR-File--Classpath-not-recognised-for-properties-file-tf3940737.html#a11177124
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

----------------------------
吴熊敏 <xwu@ublearning.com>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message