Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Log4J

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!