You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Yogi Nerella <yn...@gmail.com> on 2013/02/13 23:57:33 UTC

Beta 4, is slf4j bindings broken?

Hi,

When I try to use SLF4J bindings with log4j2.0 implementations I run into
the following exception?

Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/ext/EventData
at
org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 4 more

Thanks
Yogi

Re: Beta 4, is slf4j bindings broken?

Posted by Yogi Nerella <yn...@gmail.com>.
Ralph,

Please see my classpath and let me know if I am missing any?

C:\myws\log>java -Dlog4j.debug=true
-Dlog4j.configurationFile=c:/myws/log/src/main/resources/log4j2.xml
-classpath
C:/apache/slf4j-1.7.2/slf4j-api-1.7.2.jar;C:/apache/apache-log4j-2.0-beta4-bin/log4j-slf4j-impl-2.0-beta4.jar;C:/apache/apache-log4j-2.0-beta4-bin/log4j-api-2.0-beta4.jar;C:/apache/apache-log4j-2.0-beta4-bin/log4j-core-2.0-beta4.jar;c:/myws/log/target/classes
log.SLF4jLogger
2013-02-13 16:19:25,932 ERROR Error processing element List: CLASS_NOT_FOUND
java.lang.NoClassDefFoundError: org/slf4j/ext/EventData
at
org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 4 more
Exception in thread "main"

Appreciate your hlep,
Yogi


On Wed, Feb 13, 2013 at 4:13 PM, Yogi Nerella <yn...@gmail.com> wrote:

> Ralph,
>
> I am including only the following files.
> slf4j-api-1.7.2.jar,  log4j-core-2.0-beta4.jar,
> log4j-slf4j-impl-2.0-beta4.jar, log4j-api-2.0-beta4.jar
>
> Yogi
>
>
>
> On Wed, Feb 13, 2013 at 3:33 PM, Ralph Goers <ra...@dslextreme.com>wrote:
>
>> Are you including the slf4j-ext jar in addition to the slf4j-api jar?
>>
>> Ralph
>>
>> On Feb 13, 2013, at 2:57 PM, Yogi Nerella wrote:
>>
>> > Hi,
>> >
>> > When I try to use SLF4J bindings with log4j2.0 implementations I run
>> into
>> > the following exception?
>> >
>> > Exception in thread "main" java.lang.NoClassDefFoundError:
>> > org/slf4j/ext/EventData
>> > at
>> >
>> org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
>> > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
>> > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
>> > at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
>> > Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> > ... 4 more
>> >
>> > Thanks
>> > Yogi
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>

Re: Beta 4, is slf4j bindings broken?

Posted by Ralph Goers <ra...@dslextreme.com>.
This is an slf4j jar. Download the jar from http://www.slf4j.org/download.html.  Or add 

<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>slf4j-ext</artifactId>
  <version>1.7.2</version>
</dependency>

to your maven pom.

Ralph


On Feb 15, 2013, at 10:26 AM, Yogi Nerella wrote:

> Ralph,
> 
> Can you point me how to build this jar by myself, so that I do not need to
> wait for the next available build.
> 
> Thanks
> Yogi
> 
> 
> On Wed, Feb 13, 2013 at 5:54 PM, Ralph Goers <ra...@dslextreme.com>wrote:
> 
>> The SLF4J binding also supports the SLF4J extensions and so requires
>> slf4j-ext-1.7.2.jar.  Please create a Jira issue to have that library be
>> made optional.
>> 
>> Ralph
>> 
>> On Feb 13, 2013, at 4:13 PM, Yogi Nerella wrote:
>> 
>>> Ralph,
>>> 
>>> I am including only the following files.
>>> slf4j-api-1.7.2.jar,  log4j-core-2.0-beta4.jar,
>>> log4j-slf4j-impl-2.0-beta4.jar, log4j-api-2.0-beta4.jar
>>> 
>>> Yogi
>>> 
>>> 
>>> 
>>> On Wed, Feb 13, 2013 at 3:33 PM, Ralph Goers <ralph.goers@dslextreme.com
>>> wrote:
>>> 
>>>> Are you including the slf4j-ext jar in addition to the slf4j-api jar?
>>>> 
>>>> Ralph
>>>> 
>>>> On Feb 13, 2013, at 2:57 PM, Yogi Nerella wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> When I try to use SLF4J bindings with log4j2.0 implementations I run
>> into
>>>>> the following exception?
>>>>> 
>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> org/slf4j/ext/EventData
>>>>> at
>>>>> 
>>>> 
>> org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
>>>>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
>>>>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
>>>>> at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
>>>>> Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>>>>> ... 4 more
>>>>> 
>>>>> Thanks
>>>>> Yogi
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 


Re: Beta 4, is slf4j bindings broken?

Posted by Yogi Nerella <yn...@gmail.com>.
Ralph,

Can you point me how to build this jar by myself, so that I do not need to
wait for the next available build.

Thanks
Yogi


On Wed, Feb 13, 2013 at 5:54 PM, Ralph Goers <ra...@dslextreme.com>wrote:

> The SLF4J binding also supports the SLF4J extensions and so requires
> slf4j-ext-1.7.2.jar.  Please create a Jira issue to have that library be
> made optional.
>
> Ralph
>
> On Feb 13, 2013, at 4:13 PM, Yogi Nerella wrote:
>
> > Ralph,
> >
> > I am including only the following files.
> > slf4j-api-1.7.2.jar,  log4j-core-2.0-beta4.jar,
> > log4j-slf4j-impl-2.0-beta4.jar, log4j-api-2.0-beta4.jar
> >
> > Yogi
> >
> >
> >
> > On Wed, Feb 13, 2013 at 3:33 PM, Ralph Goers <ralph.goers@dslextreme.com
> >wrote:
> >
> >> Are you including the slf4j-ext jar in addition to the slf4j-api jar?
> >>
> >> Ralph
> >>
> >> On Feb 13, 2013, at 2:57 PM, Yogi Nerella wrote:
> >>
> >>> Hi,
> >>>
> >>> When I try to use SLF4J bindings with log4j2.0 implementations I run
> into
> >>> the following exception?
> >>>
> >>> Exception in thread "main" java.lang.NoClassDefFoundError:
> >>> org/slf4j/ext/EventData
> >>> at
> >>>
> >>
> org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
> >>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
> >>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
> >>> at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
> >>> Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
> >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> >>> ... 4 more
> >>>
> >>> Thanks
> >>> Yogi
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Re: Beta 4, is slf4j bindings broken?

Posted by Ralph Goers <ra...@dslextreme.com>.
The SLF4J binding also supports the SLF4J extensions and so requires slf4j-ext-1.7.2.jar.  Please create a Jira issue to have that library be made optional.

Ralph

On Feb 13, 2013, at 4:13 PM, Yogi Nerella wrote:

> Ralph,
> 
> I am including only the following files.
> slf4j-api-1.7.2.jar,  log4j-core-2.0-beta4.jar,
> log4j-slf4j-impl-2.0-beta4.jar, log4j-api-2.0-beta4.jar
> 
> Yogi
> 
> 
> 
> On Wed, Feb 13, 2013 at 3:33 PM, Ralph Goers <ra...@dslextreme.com>wrote:
> 
>> Are you including the slf4j-ext jar in addition to the slf4j-api jar?
>> 
>> Ralph
>> 
>> On Feb 13, 2013, at 2:57 PM, Yogi Nerella wrote:
>> 
>>> Hi,
>>> 
>>> When I try to use SLF4J bindings with log4j2.0 implementations I run into
>>> the following exception?
>>> 
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/slf4j/ext/EventData
>>> at
>>> 
>> org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
>>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
>>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
>>> at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
>>> Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>>> ... 4 more
>>> 
>>> Thanks
>>> Yogi
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Beta 4, is slf4j bindings broken?

Posted by Yogi Nerella <yn...@gmail.com>.
Ralph,

I am including only the following files.
slf4j-api-1.7.2.jar,  log4j-core-2.0-beta4.jar,
log4j-slf4j-impl-2.0-beta4.jar, log4j-api-2.0-beta4.jar

Yogi



On Wed, Feb 13, 2013 at 3:33 PM, Ralph Goers <ra...@dslextreme.com>wrote:

> Are you including the slf4j-ext jar in addition to the slf4j-api jar?
>
> Ralph
>
> On Feb 13, 2013, at 2:57 PM, Yogi Nerella wrote:
>
> > Hi,
> >
> > When I try to use SLF4J bindings with log4j2.0 implementations I run into
> > the following exception?
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/slf4j/ext/EventData
> > at
> >
> org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
> > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
> > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
> > at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
> > Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> > ... 4 more
> >
> > Thanks
> > Yogi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Re: Beta 4, is slf4j bindings broken?

Posted by Ralph Goers <ra...@dslextreme.com>.
Are you including the slf4j-ext jar in addition to the slf4j-api jar?

Ralph

On Feb 13, 2013, at 2:57 PM, Yogi Nerella wrote:

> Hi,
> 
> When I try to use SLF4J bindings with log4j2.0 implementations I run into
> the following exception?
> 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/slf4j/ext/EventData
> at
> org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:54)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
> at log.SLF4jLogger.<clinit>(SLF4jLogger.java:14)
> Caused by: java.lang.ClassNotFoundException: org.slf4j.ext.EventData
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 4 more
> 
> Thanks
> Yogi


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org