• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Log4J

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have inherited a GWT project. The logging stopped working, and I am looking into it. It seems to use log4J, as most of our programs do. One thing I am puzzled about. I see import statements, such as import org.apache.log4j.Logger; but I do not see the log4j.jar added to the libraries (I am using Eclipse.) Why is it that this is not displaying an error?
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tharpa Roberts wrote:Why is it that this is not displaying an error?


Maybe it's included in another dependency? What happens if you look for the type org.apache.log4j.Logger (using Ctrl+Shift+T)?
 
Tharpa Roberts
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote:
Maybe it's included in another dependency? What happens if you look for the type org.apache.log4j.Logger (using Ctrl+Shift+T)?


I do see it in a lot of projects, just not in any of the dependencies for this project. Is it maybe somehow included in GWT?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tharpa Roberts wrote:Is it maybe somehow included in GWT?


You didn't answer my question... If the import doesn't provide a compiler error, it must be that org.apache.log4j.Logger is part of the class path of your application. If you search for the type (using Ctrl+Shift+T in Eclipse), you should find at least one occurence and by clicking it, you'll immediately know in which dependency the class is included.
 
reply
    Bookmark Topic Watch Topic
  • New Topic