If you have your log4j.properties file at the root of your source tree, it should automatically be copied over to war/WEB-INF/classes whenever Eclipse performs a build of your project; you should not have to copy it over manually.
I'm not sure why you're getting the error with regard to Datanucleus.Connection; I've added Don to this thread; he may have some insight into this. On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen <ajc...@web2express.org> wrote: > I have the default log4j.properties in WEB-INF/classes dir. but the warning > always comes up. the file is visible because I can change the log level to > ERROR to get rid of the warning. > -aj > > > > On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright <rwright.li...@gmail.com>wrote: > >> I think you can simply put the log4j.properties file in the >> WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it. >> Log4j looks for its configuration file "on the classpath" which means it >> looks in WEB-INF/classes (and also in all of the jars in the lib directory). >> >> >> AJ Chen wrote: >> >>> I have log4j config in appengine-web.xml, >>> <system-properties> >>> <property name="java.util.logging.config.file" >>> value="WEB-INF/logging.properties"/> >>> <property name="log4j.configuration" >>> value="file:WEB-INF/classes/log4j.properties"/> >>> <property name="monitor.config.file" >>> value="WEB-INF/monitor.properties"/> >>> </system-properties> >>> but GAE still complains about it: >>> log4j:WARN No appenders could be found for logger >>> (DataNucleus.Connection). >>> log4j:WARN Please initialize the log4j system properly. >>> >>> Is there anything else that should be set? >>> >>> thanks, >>> -aj >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google App Engine for Java" group. >>> To post to this group, send email to >>> google-appengine-j...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-appengine-java?hl=en. >>> >> >> -- >> 0x2B | ~0x2b -- Hamlet >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> google-appengine-j...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> >> > > > -- > AJ Chen, PhD > Chair, Semantic Web SIG, sdforum.org > http://web2express.org > twitter @web2express > Palo Alto, CA, USA > 650-283-4091 > *Building social media monitoring pipeline, and connecting social customers > to CRM* > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.