> From: Allen,Eva [mailto:[EMAIL PROTECTED] 
> Subject: getSystemResource not working in servlet
> 
> URL rulesURL = ClassLoader.getSystemResource("x.xml");

This only retrieves resources accessible to the System class loader,
which typically only looks at the $TOMCAT_HOME/bin directory.

> but I'd much prefer to do it the "right" way if I could.  Any hints?

>From within a webapp, you would normally use getResourceAsStream().
Take a look at the FAQ:
http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff67153
2e6e844bc

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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