On May 7, 2010, at 11:26 AM, Marshall Crocker wrote: > I'm having a problem getting geronimo 2.1.1 to use my log4j.properties. It > works fine with geronimo 2.1.4 but our production server is still at 2.1.1. > <snip> > And my log4j.properties file is in WEB-INF/classes/META-INF/ > > This exception isn't very helpful and the fact that it works with 2.1.4 makes > me think that its a bug in geronimo 2.1.1. > > Any ideas on how to make it work without upgrading?
See https://issues.apache.org/jira/browse/GERONIMO-4286 Applying this patch would fix your problem, I think: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/logging/log4j/ApplicationLog4jConfigurationGBean.java?p2=%2Fgeronimo%2Fserver%2Fbranches%2F2.1%2Fframework%2Fmodules%2Fgeronimo-system%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fgeronimo%2Fsystem%2Flogging%2Flog4j%2FApplicationLog4jConfigurationGBean.java&p1=%2Fgeronimo%2Fserver%2Fbranches%2F2.1%2Fframework%2Fmodules%2Fgeronimo-system%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fgeronimo%2Fsystem%2Flogging%2Flog4j%2FApplicationLog4jConfigurationGBean.java&r1=698597&r2=698596&view=diff&pathrev=698597 Alternatively, use the "log4jFile" property, instead of "log4jResource" (you'd have to move your log configuration file out of your app...). --kevan
