On 5/1/07, David Smith <[EMAIL PROTECTED]> wrote:
I agree there may be an exceptionally rare occasion where modifying
classpath might be necessary. But such advice should be reserved for
expert use only and only if they fully understand the consequences.
Yup, had I known earlier when Mike made
I agree there may be an exceptionally rare occasion where modifying
classpath might be necessary. But such advice should be reserved for
expert use only and only if they fully understand the consequences.
--David
Rashmi Rubdi wrote:
Hi David,
On 5/1/07, David Smith <[EMAIL PROTECTED]> wrote
Hi David,
On 5/1/07, David Smith <[EMAIL PROTECTED]> wrote:
Mike, I see your issue is solved. For the sake of the archives I feel
the need to respond to the suggestion of modifying the classpath.
Please DO NOT modify the classpath. Best practice is to work with the
existing classloader struct
Mike, I see your issue is solved. For the sake of the archives I feel
the need to respond to the suggestion of modifying the classpath.
Please DO NOT modify the classpath. Best practice is to work with the
existing classloader structure and put files in the proper places.
Modifying the clas
Ah, I got it. I put the .jar file in the common\classes directory. But putting
thproperties files in the common\classes direcotry works. I'm a dunce, missed
that in the email below.
Mike Peremsky <[EMAIL PROTECTED]> wrote: Rashmi,
I just tried this and it does not work either. It is still not
Rashmi,
I just tried this and it does not work either. It is still not finding the
property file. I have verified that the class file in the jar is located at
\com\mvp\utils.
I also tried keeping the jar file in both classes and lib, but I did not
expect that to work, which it didn't
Ug. Moving the jar file to %CATALINA_HOME/common/classes now causes my servlet
to fail to load, as the base class is in the jar file that was just moved to
common/classes.
David Smith <[EMAIL PROTECTED]> wrote: Oh helps to read all the message:)
jars in common/lib can't read files in your
Hi Mike,
On 5/1/07, Mike Peremsky <[EMAIL PROTECTED]> wrote:
What do I need to do to get the class in the jar file to find the properties
files external to it?
To access a properties file that is external to the JAR file , add the
full path of the Properties file's folder to the CLASSPATH.
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
%
Oh helps to read all the message:)
jars in common/lib can't read files in your webapp. You could use
common/classes
--David
David Smith 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 abou
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.
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) {
12 matches
Mail list logo