tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Slightly OT: log4j - generic log4j.dtd
Date Thu, 30 Apr 2009 16:13:29 GMT
Gregor Schneider wrote:
...

André will not complain, but he has a suggestion :

Considering the error message :

java.net.MalformedURLException: no protocol: ${log4j.dtd}

then either the "${log4j.dtd}" does not get expanded as you expect, or 
else it does but the result is not a valid URL.
So, try :

> 
> ======== [ from catalina.sh ] =================
> CATALINA_OPTS="  -Xmx256m -server \
>          -Djava.awt.headless=true \
>          -Dlog4j.dtd="file:///${CATALINA_HOME}/common/classes/log4j.dtd" \
>          -Dlog4j.configuration=log4j.xml"
> ========================================
> 
> 
> ======== [ from some log4j.xml ] ===============
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "${log4j.dtd}">
> ========================================
> 


Now if that works, I get the chocolate.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message