Well, I actually got the properties file loading properly!
When I set undeployWars="false" in server.xml, I can still see my log
messages inside my Tomcat console!
Here's my corrected file (Log4jInitServlet):
import java.io.File;
import java.io.IOException;
import java.util.Properties;
import
On 12/22/06, James Dekker <[EMAIL PROTECTED]> wrote:
tomcat.home=C:/DevTools/tomcat/jakarta-tomcat-5.5.9
tomcat.deployment.dir=${tomcat.home}/webapps
Most of that was irrelevant :-) but the above doesn't mesh with your
earlier path:
C:\DevTools\tomcat\jakarta-tomcat-5.5.9\mywe
Hassan:
Thank you for your repsonse...
Here's what I have in my TOMCAT_HOME/conf/server.xml file:
--
On 12/22/06, James Dekker <[EMAIL PROTECTED]> wrote:
From the three lines below:
... %CATALINA_HOME%/mywebapp/%WEB-INF/lib
C:\DevTools\tomcat\jakarta-tomcat-5.5.9\bin\WEB-INF\classes\log4j.properties
C:\DevTools\tomcat\jakarta-tomcat-5.5.9\mywebapp\WEB-INF\classes\log4j.properties.
:: I'd b
Dear Chuck Caldarale & Others,
Thank you for your response!
Chuck - Your e-mail was very informative... I did remove the
servlet-apis from my %CATALINA_HOME%/mywebapp/%WEB-INF/lib directory.
The only reason I had it there was because I use Eclipse for
development and its easier to configure the
> From: James Dekker [mailto:[EMAIL PROTECTED]
> Subject: Helping setting appropriate prefix when using
> ServletContext.getResourceAsStream()
Where to begin...
> // String prefix = getServletContext().getRealPath("/");
You apparently already figured out the ab
Hello there,
I am using JDK 1.5 & Tomcat 5.5.9 on WinXP...
Set up my init servlet which is supposed to load my log4j.properties
file from myapp/WEB-INF/log4j.properties.
Here's my init servlet's source listing: