You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2007/04/12 19:32:10 UTC
DO NOT REPLY [Bug 42106] New: - [logging] Log4JLogger' cannot be found or is not useable.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42106
Summary: [logging] Log4JLogger' cannot be found or is not
useable.
Product: Log4j
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Other
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: ekamradt@yahoo.com
This is really a commons-logging issues - and I couldn't figure out how to
submit this to the commons-logging group.
Error
-------------
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: org.apache.commons.logging.LogConfigurationException: User-specified
log class 'org.apache.commons.logging.im
pl.Log4JLogger' cannot be found or is not useable.
at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
at tt.<clinit>(tt.java:12)
-----------------------
Classpath (Java 1.6)
-----------------------
set JAVA_HOME=C:\prog\Java\jdk1.6.0
set CLASSPATH=.
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;c:\temp\commons-logging-1.1.jar
set CLASSPATH=%CLASSPATH%;C:\temp\log4j-1.2.14.jar
set CLASSPATH=%CLASSPATH%;C:\temp
--------------------------
Java Class (tt.java)
--------------------------
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class tt
{
public static final Log LOG = LogFactory.getLog ( tt.class );
public static void main ( String [] args )
{
LOG.fatal ( "Fatal" );
LOG.error ( "Error" );
LOG.info ( "Info" );
LOG.warn ( "Warn" );
LOG.trace ( "Trace" );
LOG.debug ( "Debug" );
}
}
-----------------------------
commons-logging.properties (file)
-----------------------------
org.apache.commons.logging.log=org.apache.commons.logging.impl.Log4JLogger
log4j.configuration=log4j.properties
-----------------------------
log4j.properties (file)
-----------------------------
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.err
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%m
log4j.rootLogger=error
log4j.logger.cached=ERROR
------------------------
Final thoughts
------------------------
I know I must be doing something wrong and/or not smart. If you could please
spend a moment to tell me, in detail please, what I'm doing wrong I would
appreciate it.
Thanks for your time
Eric Kamradt
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 42106] - [logging] Log4JLogger' cannot be found or is not useable.
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42106
hoju@visi.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From hoju@visi.com 2007-04-12 21:11 -------
Are you using commons-logging-api.jar instead of commons-logging.jar? In any
case, there are two problems with this report...
1. It's an issue with a non-Log4j product that we have no expertise to support
2. This is a user question which should be asked on the Jakarta Commons user
list [1], not a bug which, if reported, should go toward the commons-logging
project in Jira [2]. As such, I'm marking it as invalid.
[1] http://jakarta.apache.org/site/mail2.html#Commons
[2] https://issues.apache.org/jira/browse/LOGGING
Jake
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org