tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregor <rc4...@googlemail.com>
Subject Re: Slightly OT: log4j - generic log4j.dtd
Date Thu, 30 Apr 2009 16:37:08 GMT
andre,
it gets xpanded just perfect, but seems the "file"- protocol is not  
recognized.

so u gotta work a bit more for the chocolate ;)

cheers

gregor

Am 30.04.2009 um 18:13 schrieb André Warnier <aw@ice-sa.com>:

> 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
>

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


Mime
View raw message