java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

mkyong.com | 3 months ago
  1. 0

    Error running hippo projects

    Google Groups | 6 months ago | Unknown author
    java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    First Struts2 Hibernate3 app.

    Coderanch | 7 years ago | Kevin P Smith
    java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
  4. 0

    Apache Shiro: redirect me to login page

    Stack Overflow | 4 years ago | Asme Just
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:157) at org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:117)

    22 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.slf4j.LoggerFactory

      at org.glassfish.web.loader.WebappClassLoader.loadClass()
    2. Web Container Common Utilities
      WebappClassLoader.loadClass
      1. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
      2. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
      2 frames
    3. Tiles - Core Library
      BasicTilesInitializer.<init>
      1. org.apache.tiles.startup.AbstractTilesInitializer.<init>(AbstractTilesInitializer.java:45)
      2. org.apache.tiles.startup.BasicTilesInitializer.<init>(BasicTilesInitializer.java:37)
      2 frames
    4. Spring MVC
      TilesConfigurer.afterPropertiesSet
      1. org.springframework.web.servlet.view.tiles2.TilesConfigurer$SpringTilesInitializer.<init>(TilesConfigurer.java:391)
      2. org.springframework.web.servlet.view.tiles2.TilesConfigurer$SpringTilesInitializer.<init>(TilesConfigurer.java:391)
      3. org.springframework.web.servlet.view.tiles2.TilesConfigurer.createTilesInitializer(TilesConfigurer.java:372)
      4. org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterPropertiesSet(TilesConfigurer.java:337)
      4 frames
    5. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
      9 frames
    6. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
      2 frames
    7. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
      2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
      3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
      4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
      5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
      6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
      6 frames
    8. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:244)
      1 frame
    9. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
      2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1250)
      3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
      4 frames
    10. Glassfish
      WebModule.start
      1. com.sun.enterprise.web.WebModule.start(WebModule.java:498)
      1 frame
    11. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
      2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
      3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
      3 frames
    12. Glassfish
      WebApplication.start
      1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
      2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
      3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
      3 frames
    13. Private APIs of Glassfish
      ApplicationInfo.start
      1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
      2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
      3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
      3 frames
    14. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
      2 frames
    15. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
      1 frame
    16. Kernel Classes
      AdminAdapter.service
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
      4. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
      5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
      6. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
      7. com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
      8. com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
      8 frames
    17. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
      1 frame
    18. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
      3. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      3 frames
    19. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    20. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)
      1 frame