Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Configurable Errors

James Dekker

2007-01-16

Replies:

Dear Mr. Harper,

Thank you for the response!

I set the path inside the ActionError constructor as follows:

public ActionError() {
    m_resource = ResourceBundle.getBundle("/error.properties");
}

I thought the "/" meant the root directory inside
CATALINA_HOME/WEB-INF/classes/.

Since, my error.properties file is going inside the
CATALINA_HOME/WEB-INF/classes/org/coffeebreak/wrapper/ directory via
my Ant build script, I rewrote the code inside the constructor as:

public ActionError() {
    // I removed the slash
    m_resource = ResourceBundle.getBundle("error.properties");
}

And then it gave me that Missing exception...

What am I possibly doing wrong?

Sincerely,

James Dekker

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.