You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by ji...@apache.org on 2004/04/17 17:49:29 UTC

[jira] Updated: (CACTUS-38) Necessary log kit for Cactus

The following issue has been updated:

    Updater: Vincent Massol (mailto:vmassol@apache.org)
       Date: Sat, 17 Apr 2004 8:47 AM
    Changes:
             assignee changed from Cactus Developers Mailing List to Vincent Massol
             description changed from In Cactus 1.4 package, the documentation said for the logging purpose, all 
needed is just commons-logging.jar, other such as log4j etc are optional. But 
actually, what I'd found is not this case. If I dont place package like 
log4j.jar under TOMCAT_HOME/common/lib, the sample servlet test will not work, 
instead, print out errors like:
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: No suitable Log 
constructor
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:509)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:285)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:255)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
	at org.apache.cactus.server.runner.ServletTestRunner.around91_doGet
(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142)
	at org.apache.cactus.server.runner.ServletTestRunner.doGet
(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


After I place log4j.jar to the common/lib directory, all fine. to In Cactus 1.4 package, the documentation said for the logging purpose, all 
needed is just commons-logging.jar, other such as log4j etc are optional. But 
actually, what I'd found is not this case. If I dont place package like 
log4j.jar under TOMCAT_HOME/common/lib, the sample servlet test will not work, 
instead, print out errors like:
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: No suitable Log 
constructor
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:509)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:285)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:255)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
	at org.apache.cactus.server.runner.ServletTestRunner.around91_doGet
(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142)
	at org.apache.cactus.server.runner.ServletTestRunner.doGet
(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


After I place log4j.jar to the common/lib directory, all fine.
             environment changed from Operating System: Linux
Platform: Other to Operating System: Linux
Platform: Other
             priority changed to Major
             Fix Version changed to 1.5-beta1
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/CACTUS-38?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/CACTUS-38

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CACTUS-38
    Summary: Necessary log kit for Cactus
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: CANNOT REPRODUCE

    Project: Cactus
 Components: 
             Framework
   Fix Fors:
             1.5-beta1
   Versions:
             1.0

   Assignee: Vincent Massol
   Reporter: hong li

    Created: Mon, 17 Mar 2003 9:31 AM
    Updated: Sat, 17 Apr 2004 8:47 AM
Environment: Operating System: Linux
Platform: Other

Description:
In Cactus 1.4 package, the documentation said for the logging purpose, all 
needed is just commons-logging.jar, other such as log4j etc are optional. But 
actually, what I'd found is not this case. If I dont place package like 
log4j.jar under TOMCAT_HOME/common/lib, the sample servlet test will not work, 
instead, print out errors like:
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: No suitable Log 
constructor
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:509)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:285)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:255)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
	at org.apache.cactus.server.runner.ServletTestRunner.around91_doGet
(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142)
	at org.apache.cactus.server.runner.ServletTestRunner.doGet
(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


After I place log4j.jar to the common/lib directory, all fine.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org