Jacob,
Thanks,for the Info. I have got the problem solved. The issue was because of
an error in the classloading hierarchy. I had my commons logging jar loaded by the
application class loader where as the Log4j jar was loaded by my webapp classloader.
So the commons jar didnt have the visibility.
Thanks a lot for your time.
Raghu.
> -----Original Message-----
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2004 05:35
> To: Log4J Users List
> Subject: Re: org.apache.commons.logging.LogConfigurationException
>
>
> This is a commons-logging issue, not a Log4j issue, as far as I can
> tell. Try the jakarta-commons mailing list.
>
> Jake
>
> At 06:39 PM 9/14/2004 +0100, you wrote:
> >Hi,
> >
> > I am trying to use log4j as logging framework for
> my cactus test
> > suite installation. I have a log4j.property file and a servlet to
> > initialise that. When my weblogic server starts and trys to
> initialise
> > the servlet it throws the following error.
> >
> ><14-Sep-04 18:17:19 BST> <Info> <HTTP> <101047>
> ><[ServletContext(id=4426605,name=portal_webapp,context-path=/
> Portal)]
> >Log4jservlet: init>
> >java.lang.ExceptionInInitializerError:
> >org.apache.commons.logging.LogConfigurationException:
> >org.apache.commons.logging.LogConfigurationException: No
> suitable Log
> >constructor
> > at
> >
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> FactoryImpl.java:509)
> > at
> >
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> FactoryImpl.java:285)
> > at
> >
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> FactoryImpl.java:255)
> > at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> > at
> >
> org.apache.cactus.server.FilterTestRedirector.<clinit>(FilterT
estRedirector.java;org/apache/cactus/util/log/Log> Aspect.aj(1k):86)
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Class.java:232)
> > at
> >
> weblogic.servlet.internal.WebAppServletContext.registerFilter(
> WebAppServletContext.java:2482)
> > at
> >
> weblogic.servlet.internal.WebAppServletContext.initFilters(Web
> AppServletContext.java:2468)
> > at
> >
> weblogic.servlet.internal.WebAppServletContext.preloadResource
> s(WebAppServletContext.java:2738)
> > at
> >
> weblogic.servlet.internal.HttpServer.preloadResources(HttpServ
> er.java:660)
> > at
> >
> weblogic.servlet.internal.WebService.preloadResources(WebServi
> ce.java:480)
> > at
> > weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
> > at
> >
> weblogic.security.service.SecurityServiceManager.runAs(Securit
> yServiceManager.java:685)
> > at
> weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
> > at java.lang.Thread.run(Thread.java:479)
> >
> >
> >The version of the server and tools that I use are:-
> >
> >WLP 7.0 sp4
> >Cactus-1.4.1.jar
> >log4j-1.2.6.jar
> >commons-httpclient-2.0-rc2.jar
> >
> >The log4j.properties file looks like this:-
> ># Properties for configuring Log4j
> >
> ># any application log which uses Log4J will be logged to the
> Cactus log file
> >log4j.rootLogger=DEBUG, cactus
> >
> ># This is the configuring for logging on the JUnit side
> (i.e. the client side)
> >log4j.appender.cactus = org.apache.log4j.FileAppender
> >log4j.appender.cactus.File = cactus_client.log
> >log4j.appender.cactus.Append = false
> >log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
> >log4j.appender.cactus.layout.ConversionPattern =
> %d{ABSOLUTE} [%t] %-5p
> >%-30.30c{2} %x - %m %n
> >
> ># By default we don't log at the DEBUG level for Cactus log,
> in order not
> >to generate too
> ># many logs. However, should a problem arise and logs need
> to be sent to
> >the Cactus dev team,
> ># then we will ask you to change this to DEBUG.
> >log4j.logger.org.apache.cactus = WARN, cactus
> >log4j.additivity.org.apache.cactus=false
> >
> ># Don't show debug logs for HttpClient
> >log4j.logger.org.apache.commons.httpclient = WARN, cactus
> >log4j.additivity.org.apache.commons.httpclient=false
> >log4j.logger.httpclient = WARN, cactus
> >log4j.additivity.httpclient=false
> >
> >
> >Your help would be highly appreciated.
> >
> >Thanks in advance,
> >
> >Cheers,
> >Raghu.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]