org.springframework.context.ApplicationContextException: Unable to start embedde d container; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/Embed dedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of be an failed; nested exception is org.springframework.beans.factory.UnsatisfiedDepe ndencyException: Error creating bean with name 'org.springframework.boot.autocon figure.web.HttpEncodingAutoConfiguration': Unsatisfied dependency expressed thro ugh constructor parameter 0: Error creating bean with name 'spring.http.encoding -org.springframework.boot.autoconfigure.web.HttpEncodingProperties': Initializat ion of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xm l/bind/ValidationException; nested exception is org.springframework.beans.factor y.BeanCreationException: Error creating bean with name 'spring.http.encoding-org .springframework.boot.autoconfigure.web.HttpEncodingProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bi nd/ValidationException at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.4.0.RELEASE .jar:1.4.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:535) ~[spring-context-4.3.2.RELEASE.jar:4.3.2. RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.j ar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication. java:759) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringAppli cation.java:369) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :313) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :1185) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :1174) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]

Stack Overflow | Ivaro18 | 3 months ago
  1. 0

    Java 9 - REST with Spring 5 & Jigsaw - Is it possible?

    Stack Overflow | 3 months ago | Ivaro18
    org.springframework.context.ApplicationContextException: Unable to start embedde d container; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/Embed dedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of be an failed; nested exception is org.springframework.beans.factory.UnsatisfiedDepe ndencyException: Error creating bean with name 'org.springframework.boot.autocon figure.web.HttpEncodingAutoConfiguration': Unsatisfied dependency expressed thro ugh constructor parameter 0: Error creating bean with name 'spring.http.encoding -org.springframework.boot.autoconfigure.web.HttpEncodingProperties': Initializat ion of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xm l/bind/ValidationException; nested exception is org.springframework.beans.factor y.BeanCreationException: Error creating bean with name 'spring.http.encoding-org .springframework.boot.autoconfigure.web.HttpEncodingProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bi nd/ValidationException at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.4.0.RELEASE .jar:1.4.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:535) ~[spring-context-4.3.2.RELEASE.jar:4.3.2. RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.j ar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication. java:759) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringAppli cation.java:369) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :313) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :1185) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :1174) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  2. 0

    Error while starting spring boot application with couchbase Error creating bean with name 'tomcatEmbeddedServletContainerFactory'

    Stack Overflow | 9 months ago | user3796838
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$$EnhancerBySpringCGLIB$$6f4ff8c5]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$$EnhancerBySpringCGLIB$$6f4ff8c5.<init>()
  3. 0

    Cucumber Tests fail with HazelCast session replication

    GitHub | 12 months ago | lukasw44
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webConfigurer': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.hazelcast.core.HazelcastInstance it.seiton.seed.admin.config.WebConfigurer.hazelcastInstance; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hazelcastInstance' defined in class path resource [it/seiton/seed/admin/config/CacheConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastInstance' threw exception; nested exception is com.hazelcast.core.DuplicateInstanceNameException: HazelcastInstance with name 'admin' already exists!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    StubNotFoundException during the context configuration

    Stack Overflow | 4 weeks ago | julien colin
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'undertowEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedUndertow.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webConfigurer': Unsatisfied dependency expressed through field 'hazelcastInstance'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hazelcastInstance' defined in class path resource [com/mycompany/test/config/CacheConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastInstance' threw exception; nested exception is org.springframework.cloud.contract.stubrunner.StubNotFoundException: Stub not found for stub with notation [test]
  6. 0

    Orientdb - Spring boot application with embedded jetty not starting because it could not bind to properties

    Stack Overflow | 2 years ago | 1stmajor
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties': Could not bind properties to [unknown] (target=server, ignoreInvalidFields=false, ignoreUnknownFields=false, ignoreNestedProperties=false); nested exception is javax.validation.ValidationException: HV000041: Call to TraversableResolver.isReachable() threw an exception.

    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. org.springframework.context.ApplicationContextException

      Unable to start embedde d container; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/Embed dedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of be an failed; nested exception is org.springframework.beans.factory.UnsatisfiedDepe ndencyException: Error creating bean with name 'org.springframework.boot.autocon figure.web.HttpEncodingAutoConfiguration': Unsatisfied dependency expressed thro ugh constructor parameter 0: Error creating bean with name 'spring.http.encoding -org.springframework.boot.autoconfigure.web.HttpEncodingProperties': Initializat ion of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xm l/bind/ValidationException; nested exception is org.springframework.beans.factor y.BeanCreationException: Error creating bean with name 'spring.http.encoding-org .springframework.boot.autoconfigure.web.HttpEncodingProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bi nd/ValidationException at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.4.0.RELEASE .jar:1.4.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:535) ~[spring-context-4.3.2.RELEASE.jar:4.3.2. RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.j ar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication. java:759) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringAppli cation.java:369) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :313) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :1185) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java :1174) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]

      at hello.Application.main()
    2. hello
      Application.main
      1. hello.Application.main(Application.java:10)[classes/:na]
      1 frame