incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thushan Ganegedara <thu...@gmail.com>
Subject Re: [Compile Error] java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Date Tue, 13 Mar 2012 13:18:52 GMT
Hi Vivek and Dave,
Problem was I had to add all the libraries in the lib folder.
Thank again for the help :-)

On Tue, Mar 13, 2012 at 10:04 AM, Vivek Mishra <vivek.mishra@yahoo.com>wrote:

> I think, Snakeyaml jar is missing from your classpath.
>
> You can download it from here:
>
> http://www.java2s.com/Code/Jar/s/Downloadsnakeyamljar.htm
>
>
>
>
>
> ________________________________
>  From: Thushan Ganegedara <thushv@gmail.com>
> To: dev@cassandra.apache.org
> Sent: Tuesday, March 13, 2012 9:40 AM
> Subject: Re: [Compile Error] java.lang.NoClassDefFoundError:
> org/slf4j/LoggerFactory
>
> Hi Dave,
>
> Thank you for the quick reply. I did the following
> I put slf4j-api-1.6.1.jar and slf4j-log4j12-1.6.1.jar to my class path as
> you suggested.
> It presented me with another error
> Failed to instantiate SLF4J LoggerFactory
>
> When I googled this I found the following post, though it's not directly
> related to cassandra
> https://medsphere.org/thread/1960
>
> When I removed slf4j-log4j12-1.6-1.jar and ran, it gives me following error
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
> java.lang.NoClassDefFoundError: org/yaml/snakeyaml/error/YAMLException
>     at
>
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:125)
>     at
>
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:352)
>     at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:105)
> Caused by: java.lang.ClassNotFoundException:
> org.yaml.snakeyaml.error.YAMLException
>     at java.net.URLClassLoader$1.run(Unknown Source)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     ... 3 more
> Exception encountered during startup:
> org/yaml/snakeyaml/error/YAMLException
>
>
> On Tue, Mar 13, 2012 at 7:30 AM, Dave Brosius <dbrosius@mebigfatguy.com
> >wrote:
>
> > You need to add slf4j-api-1.6.1.jar and slf4j-log4j12-1.6.1.jar to your
> > class path
> >
> >
> > You can also look at this page, http://wiki.apache.org/**
> > cassandra/HowToDebug <http://wiki.apache.org/cassandra/HowToDebug> for
> > another example of setting up cassandra for debugging.
> >
> >
> >
> >
> > On 03/12/2012 09:47 PM, Thushan Ganegedara wrote:
> >
> >> Hi all,
> >> I have followed the instruction presented on
> >> Running cassandra on Eclipse -
> >> http://wiki.apache.org/**cassandra/**RunningCassandraInEclipse<
> http://wiki.apache.org/cassandra/RunningCassandraInEclipse>
> >> But when I tried to compile the codebase it presented me with the
> >> following
> >> error
> >>
> >> java.lang.
> >> NoClassDefFoundError: org/slf4j/LoggerFactory
> >>     at
> >> org.apache.cassandra.service.**AbstractCassandraDaemon.<**clinit>(**
> >> AbstractCassandraDaemon.java:**103)
> >> Caused by: java.lang.**ClassNotFoundException: org.slf4j.LoggerFactory
> >>     at java.net.URLClassLoader$1.run(**Unknown Source)
> >>     at java.security.**AccessController.doPrivileged(**Native Method)
> >>     at java.net.URLClassLoader.**findClass(Unknown Source)
> >>     at java.lang.ClassLoader.**loadClass(Unknown Source)
> >>     at sun.misc.Launcher$**AppClassLoader.loadClass(**Unknown Source)
> >>     at java.lang.ClassLoader.**loadClass(Unknown Source)
> >>     ... 1 more
> >> Exception in thread "main"
> >>
> >> Can anybody help me here?
> >> Thnx a lot
> >>
> >>
> >>
> >
>
>
> --
> Regards,
>
> Thushan Ganegedara,
> Department of Computer Science and Engineering,
> University of Moratuwa.
>



-- 
Regards,

Thushan Ganegedara,
Department of Computer Science and Engineering,
University of Moratuwa.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message