NoClassDefFoundError org apache juli logging LogFactory

NoClassDefFoundError org apache juli logging LogFactory

Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

  • If you see below exception while running application then please follow below steps to fix it:

Solution: This happens if tomcat-juli.jar is missing from your classpath. If you are working on eclipse please see steps below:

  • Click to open your server tab
  • Double click tomcat server in your eclipse server view to open its configuration
  • Click “Open launch configuration”

2014-10-28 15_01_07-Java - Tomcat v7.0 Server at localhost - Eclipse

  • Click classpath tab –> Add external jar –> select location of jar (TOMCAT_HOME/bin/tomcat-juli.jar)
  • Click OK
  • Run tomcat from eclipse
  • This should fix the issue

Leave a Reply

Your email address will not be published. Required fields are marked *