aspose file tools*
The moose likes Servlets and the fly likes Why does FrontMan uses Commons-Logging and what is this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why does FrontMan uses Commons-Logging and what is this?" Watch "Why does FrontMan uses Commons-Logging and what is this?" New topic
Author

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

Robert Krieg
Greenhorn

Joined: Aug 27, 2008
Posts: 9
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60056
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60056
    
  65

P.S. That is the only external dependency that FrontMan has.
Robert Krieg
Greenhorn

Joined: Aug 27, 2008
Posts: 9
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60056
    
  65

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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why does FrontMan uses Commons-Logging and what is this?
 
Similar Threads
I'm not able to get FrontMan working
Log4j
using log4J
struts2 error
LoggingPermission