Friday, November 11, 2011

Failed to instantiate SLF4J LoggerFactory Reported exception

if you get below mentioned error


Failed to instantiate SLF4J LoggerFactory Reported exception:
java.lang.NoClassDefFoundError: org/apache/log4j/Level
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
        at org.quartz.impl.StdSchedulerFactory.(StdSchedulerFactory.java:274)
        at com.hewitt.hre.scheduler.ScheduleJob.main(ScheduleJob.java:26)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 7 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
        at org.quartz.impl.StdSchedulerFactory.(StdSchedulerFactory.java:274)
        at com.hewitt.hre.scheduler.ScheduleJob.main(ScheduleJob.java:26)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 7 more



Possible reason could be you have forgot to set log4j.jar in classpath. Please try adding log4j JAR file (e.g. log4j-1.2.14.jar) in classpath.

19 comments:

  1. I am regular visitor, how are you everybody? This paragraph posted at this website
    is truly fastidious.

    Feel free to visit my blog post :: essay writing service uk

    ReplyDelete
  2. Aw, this was an exceptionally nice post. Spending some time
    and actual effort to make a superb article… but what can I say… I hesitate a whole lot and never
    manage to get anything done.

    Feel free to visit my webpage: classic cartoon t-shirts

    ReplyDelete
  3. Thanks for finally talking about > "Failed to instantiate SLF4J LoggerFactory Reported exception" < Loved it!

    Feel free to visit my page: US real estate agent
    directory

    ReplyDelete
  4. Very shortly this web page will be famous amid all blogging and
    site-building people, due to it's nice content

    my homepage; local directory

    ReplyDelete
  5. Hi, I do think this is an excellent site.
    I stumbledupon it ;) I will come back once again since I
    book-marked it. Money and freedom is the greatest way to
    change, may you be rich and continue to guide other people.



    Check out my blog ... computer repair in charlotte

    ReplyDelete
  6. Hi there, I discovered your web site via Google even as
    looking for a comparable topic, your site got here up, it appears good.
    I've bookmarked it in my google bookmarks.
    Hello there, just changed into aware of your weblog thru Google, and found that it is really informative. I am going to watch out for brussels. I will be grateful if you happen to proceed this in future. A lot of folks will be benefited from your writing. Cheers!

    My webpage cover page research paper

    ReplyDelete
  7. Good day! I know this is somewhat off topic but I was wondering which blog
    platform are you using for this website? I'm getting sick and tired of Wordpress because I've had
    issues with hackers and I'm looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform.

    Here is my web blog - write my essay.com

    ReplyDelete
  8. May I simply say what a relief to find somebody who
    truly understands what they're talking about on the web. You actually know how to bring an issue to light and make it important. A lot more people must check this out and understand this side of your story. I can't believe you
    aren't more popular given that you definitely possess the gift.

    Also visit my homepage download movie forum

    ReplyDelete
  9. Thanks for every other informative web site. The place else may just I get that kind of info written in such
    an ideal method? I've a mission that I am simply now operating on, and I have been on the glance out for such info.

    Visit my webpage - USA real estate agent directories

    ReplyDelete
  10. You are so awesome! I don't suppose I've
    truly read through something like that before.

    So nice to find somebody with some genuine thoughts on this issue.
    Seriously.. thanks for starting this up. This web site is one
    thing that's needed on the web, someone with a little originality!

    Feel free to visit my blog real estate broker directory

    ReplyDelete
  11. Hmm it looks like your blog ate my first comment (it was super long) so I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog.
    I too am an aspiring blog writer but I'm still new to the whole thing. Do you have any tips for novice blog writers? I'd certainly appreciate it.


    Here is my website: local company search

    ReplyDelete
  12. An intriguing discussion is worth comment. I do think that you need to write more
    on this topic, it may not be a taboo matter but generally people don't talk about these subjects. To the next! All the best!!

    Here is my homepage: real estate listing

    ReplyDelete
  13. After I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and
    now every time a comment is added I get 4 emails with the same comment.

    There has to be a means you can remove me from that service?
    Cheers!

    My blog post - small buisness listings

    ReplyDelete
  14. What's up, I would like to subscribe for this webpage to take hottest updates, so where can i do it please help.

    Take a look at my site charlotte north carolina computer parts

    ReplyDelete
  15. Hurrah! At last I got a webpage from where I be capable of
    really obtain valuable data regarding my study and knowledge.


    Also visit my blog - anime t-shirts wholesale

    ReplyDelete
  16. Wonderful, what a webpage it is! This blog gives valuable
    information to us, keep it up.

    my blog ... local whitepages

    ReplyDelete
  17. What's Going down i'm new to this, I stumbled upon this I have discovered It positively useful and
    it has aided me out loads. I'm hoping to contribute & assist different users like its helped me. Great job.

    my web site :: movie forumz wreck it ralph

    ReplyDelete
  18. Hi! This is kind of off topic but I need some advice
    from an established blog. Is it tough to set up your own blog?
    I'm not very techincal but I can figure things out pretty quick. I'm thinking
    about making my own but I'm not sure where to begin. Do you have any ideas or suggestions? With thanks

    Review my weblog; research paper thesis example

    ReplyDelete
  19. What's Going down i am new to this, I stumbled upon this I've found It positively useful and it has helped me out loads.
    I'm hoping to give a contribution & aid other users like its aided me. Great job.

    My blog :: movie chattahoochee

    ReplyDelete