• 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

Why does FrontMan uses Commons-Logging and what is this?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys

I try to use Bear Bibeaults lovely FrontMan Framework. When I tried to start it, I had a ClassNotFoundException, because it didn't find some "Commons Logging" thing.

I found this commons-logging jar-thing in the web and put it in my /lib.

Now it works but my question is:

Why does Frontman use this?
What does Commons Logging do?
Why isn't this included to tomcat?

Thank you and greetings from Robert
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Commons Logging is an abstraction layer for logging libraries. The most common logging implementations are java.util.logging and log4j, but there are others as well. If you ever want to switch your code from using one to the other, you'll find that you need to touch most source files. Commons Logging abstracts that away, and lets you configure which logging implementation to use with a properties file - no source changes required.

It's widely used, although apparently Tomcat doesn't use it.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly. I didn't want to force anyone to have to use Log4J (my preference), so commons logging let's you use the java.util.logging package if you prefer.

Since the source is included, you can go in and remove/comment-out the logging statements if you'd rather not have to include the commons jar.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
P.S. That is the only external dependency that FrontMan has.
 
Robert Krieg
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay. I was just scared that my tomcat installation isn't correctly set up because the Frontman API says there are no external things needed.

But everythings runs fine now

Thank you
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Robert Krieg:
Okay. I was just scared that my tomcat installation isn't correctly set up because the Frontman API says there are no external things needed.

Hmmm. I'll have to check that. I thought certain I had updated that...
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic