commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saimon Moore <>
Subject commons-logging:InstantiationException for factory implementations
Date Thu, 21 Mar 2002 23:54:02 GMT

I decide to check out commons-logging because I liked the idea of having 
a generic interface to other logging solutions.

It was quite easy to setup, set the 

(Saved in under WEB-INF), get a Log from the 
LogFactory and off you go...

I have stuck the commons-logging jar under WEB-INF /lib but when my 
servlet initialises, although the props file is being found as are the 
classes in the commons-logging jar, I'm getting an 
InstantiationException when trying to instantiate the factory 
implementations ( I tried SimpleLog and the Log4JCategoryLog).

I'm sorry I don't have the stack trace available here but the exception 
appeared when executing LogFactory.getFactory()...

I'm quite baffled by this since the factory impl classes are within the 
same jar as the classes trying to instantiate them...(I checked...)

Has anyone run into this before?

Any kind of pointer will be appreciated...



(btw the problem is in a servlet I've written that generates pdf on the 
fly using <a href="">iText</a> and Velocity- 
I thought I'd mention it seeing as there has been talk about generating 
pdf docs for the jakarta site. I'd thoroughly recommend iText for the job.)

Do You Yahoo!?
Get your free address at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message