The system.properties file is already located in the WEB-INF classes directory.
Sorry I am new to this stuff, not sure what other information you need.
%CATALINA_HOME%/common/lib/mvp.jar <- contains ExtProperties.class
%CATALINA_HOME%/webapps/fs/WEB-INF/classes/system.properties
%CATALINA_HOME%/webapps/fs/WEB-INF/classes <- contains all other classes for
"fs" app
David Smith <[EMAIL PROTECTED]> wrote:
Your could put the properties file in WEB-INF/classes which is
equivalent to storing it in the jar file. Otherwise we'll need to know
more about where you are storing your properties file to help.
-- David
Mike Peremsky wrote:
> I created some utility classes that read proeprties files (e.g.
> com.mvp.utils.ExtProperties). In the method where I try to load the
> properties file I have
>
>
> package com.mvp.utils;
>
> class ExtProperties {
>
> private static PropertyResourceBundle loadProperties(String propsFile) {
>
> PropertyResourceBundle prb =
> (PropertyResourceBundle) ResourceBundle.getBundle(propsFile);
>
> return prb;
> }
> }
>
>
> This file is then compiled and placed in a jar file, which is copied to my
> Tomcat\common\lib directory. Whenver I try to call the ExtProperties class it
> fails to find the properties file. If I include the properties file in the
> jar file it finds it with no problem. I assume that this is a class loader
> problem (which which I am not very familiar).
>
> What do I need to do to get the class in the jar file to find the properties
> files external to it? Do I need to specify the full path to the file?
>
> TIA
>
> - Mike
>
>
>
>
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
> Check outnew cars at Yahoo! Autos.
>
--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.