On Wed, Mar 28, 2012 at 10:17 PM, Richard W. Adams <rwada...@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_holt5...@msn.com> > To: <users@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org