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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

----------------------------
吴熊敏 <[EMAIL PROTECTED]>


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

Reply via email to