You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by JASON HOLT <j_...@msn.com> on 2012/03/28 19:49:05 UTC

log4j.properties




I'm new to Java, Tomcat, and Wicket. I apologize in advance for asking the obvious.
 
Tomcat logs complain that log4j is not properly configured. I placed my log4j.properties file in the /WEB-INF/classes folder and errors stop.
 
I would like ALL Wicket applications to share a single log4j.properties file so I don't have to remember to include it in every application I deploy. Can I configure Tomcat to accomplish this? If so, how?
 
Using Tomcat 7.026, JDK 7u3, and Wicket 1.5.5
 
Thanks.
 		 	   		  

RE: log4j.properties

Posted by JASON HOLT <j_...@msn.com>.
Thanks for your help. I included the properties file in a separate jar.
 > From: TorIverW@arrive.no
> To: users@wicket.apache.org
> Date: Thu, 29 Mar 2012 08:38:57 +0200
> Subject: RE: log4j.properties
> 
> > Additionally you can put log4j.properties in its own jar and put it in $tomcat/lib.
> 
> That's the default for Tomcat 6+, but formally the location for shared classpath entries is defined in the property common.loader in $tomcat/conf/catalina.properties. So e.g. to "re-establish" the older structure with common/classes etc. you would edit this entry accordingly.
> 
> - Tor Iver
> 
> B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\��][��X��ܚX�P�X��]�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\��Z[�X��]�\X�K�ܙ�B�
 		 	   		  

RE: log4j.properties

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> Additionally you can put log4j.properties in its own jar and put it in $tomcat/lib.

That's the default for Tomcat 6+, but formally the location for shared classpath entries is defined in the property common.loader in $tomcat/conf/catalina.properties. So e.g. to "re-establish" the older structure with common/classes etc. you would edit this entry accordingly.

- Tor Iver


Re: log4j.properties

Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Mar 28, 2012 at 10:17 PM, Richard W. Adams <RW...@up.com> wrote:
> This is a log4j issue, not Wicket. However, if memory serves, you can set
> a system property before starting Tomcat. Something like:
>
> -Dlog4j.configuration=name.and.location.of.your.log4j properties.file
>

This is the correct way to do it.
Additionally you can put log4j.properties in its own jar and put it in
$tomcat/lib.

But since you just begin you better check Logback project -
http://logback.qos.ch/

> A log4j forum is probably the best place to query the current "best
> practice" on this.
>
>
>
>
> From:   JASON HOLT <j_...@msn.com>
> To:     <us...@wicket.apache.org>
> Date:   03/28/2012 12:49 PM
> Subject:        log4j.properties
>
>
>
>
>
>
>
> I'm new to Java, Tomcat, and Wicket. I apologize in advance for asking the
> obvious.
>
> Tomcat logs complain that log4j is not properly configured. I placed my
> log4j.properties file in the /WEB-INF/classes folder and errors stop.
>
> I would like ALL Wicket applications to share a single log4j.properties
> file so I don't have to remember to include it in every application I
> deploy. Can I configure Tomcat to accomplish this? If so, how?
>
> Using Tomcat 7.026, JDK 7u3, and Wicket 1.5.5
>
> Thanks.
>
>
>
> **
>
> This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
> **



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


Re: log4j.properties

Posted by "Richard W. Adams" <RW...@UP.COM>.
This is a log4j issue, not Wicket. However, if memory serves, you can set 
a system property before starting Tomcat. Something like:

-Dlog4j.configuration=name.and.location.of.your.log4j.properties.file

A log4j forum is probably the best place to query the current "best 
practice" on this.




From:   JASON HOLT <j_...@msn.com>
To:     <us...@wicket.apache.org>
Date:   03/28/2012 12:49 PM
Subject:        log4j.properties







I'm new to Java, Tomcat, and Wicket. I apologize in advance for asking the 
obvious.
 
Tomcat logs complain that log4j is not properly configured. I placed my 
log4j.properties file in the /WEB-INF/classes folder and errors stop.
 
I would like ALL Wicket applications to share a single log4j.properties 
file so I don't have to remember to include it in every application I 
deploy. Can I configure Tomcat to accomplish this? If so, how?
 
Using Tomcat 7.026, JDK 7u3, and Wicket 1.5.5
 
Thanks.
  


**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**