Howdy,
>I don't want to hardcode the path in the Java code. I think it's better
to
>take care of business in web.xml. But I might have to yield
eventaully:-(.
You can do it either way. You're not hard-coding the path in the Java
code, only the relative location of the log4j configuration file to your
docBase. You already said you want the configuration file in WEB-INF/,
not WEB-INF/classes and not elsewhere on the classpath, so you're taking
the Class#getResource approach out. You're also taking log4j's default
initialization procedure out. So what choices are you leaving that are
not "hard-coded" ? ;)
Yoav Shapira
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)