The trick is to use gwt-log.x.x.x.jar as is and not recompile it as part of your build process
On Thu, Sep 17, 2009 at 12:12 PM, Matt Raible <[email protected]> wrote: > > Strangely enough, this only seems to happen when I use JDK 1.6.0_03 > but not version with 1.6.0_14. Also, it only seems to happen on > Windows, not on OS X (not sure about Linux). Maven version doesn't > seem to matter. My guess is that there's something in the older JDK > that doesn't properly detect native Java logging. > > On Sep 17, 3:03 pm, Fred Sauer <[email protected]> wrote: > > You do not need a log4j jar on the client. > > > > However, it looks like maven is trying to rebuild gwt-log from source. > Maven > > may or may not be doing the right thing there as gwt-log uses a > combination > > of server and client side versions of the same log files. I'd highly > > recommend reconfiguring maven to not do this. > > > > gwt-log-x.x.x.jar ships with ServerLogImplLog4J.java and > > ServerLogImplLog4J.class > > (precompiled). > > HTH > > Fred > > > > > > > > On Thu, Sep 17, 2009 at 11:33 AM, Matt Raible <[email protected]> wrote: > > > > > Hello, > > > > > Is log4j required to use gwt-log in a GWT client? When moving our > > > project to a continuous integration server (Bamboo), we're seeing the > > > following compilation errors: > > > > > The error (pasted below) is a strange one since I've never experienced > > > it or seen it. The only thing I can think of is it's caused by the > > > Maven version. > > > > > 14-Sep-2009 09:51:22 [INFO] Compilation failure > > > 14-Sep-2009 09:51:22 > > > 14-Sep-2009 09:51:22 /sans/home/bmaster/.m2/repository/com/ > > > allen_sauer/gwt/gwt-log/2.6.2/gwt-log-2.6.2.jar(com/allen_sauer/gwt/ > > > log/server/ServerLogImplLog4J.java):[20,23] package org.apache.log4j > > > does not exist > > > > > We're using Maven and we had to add log4j as a dependency to fix this. > > > However, we didn't need this dependency on OS X or Windows development > > > machines. Seems strange that it's required. > > > > > Thanks, > > > > > Matt > > > > -- > > Fred Sauer > > Developer Advocate > > Google Inc. 1600 Amphitheatre Parkway > > Mountain View, CA 94043 > > [email protected] > > > -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-log" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en -~----------~----~----~----~------~----~------~--~---
