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

javahonk.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NoClassDefFoundError org apache juli logging LogFactory

    javahonk.com | 7 months ago
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
  2. 0

    v1.4.0.RELEASE has hidden dependency on tomcat-juli

    GitHub | 5 months ago | abhijitsarkar
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletContainer' defined in xxx.cloud.gateway.GatewayApp: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.context.embedded.EmbeddedServletContainerFactory]: Factory method 'servletContainer' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/juli/logging/LogFactory

      at org.apache.catalina.util.LifecycleBase.<clinit>()
    2. Glassfish Core
      LifecycleBase.<clinit>
      1. org.apache.catalina.util.LifecycleBase.<clinit>(LifecycleBase.java:37)
      1 frame
    3. Spring Boot
      EmbeddedWebApplicationContext.onRefresh
      1. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:140)
      2. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:148)
      3. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
      3 frames
    4. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:476)
      1 frame
    5. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:109)
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
      3. org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
      5 frames
    6. com.javahonk
      Application.main
      1. com.javahonk.Application.main(Application.java:17)
      1 frame