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 | 4 months ago
  1. 0

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

    Stack Overflow | 4 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

    Spring-Boot application startup failed

    Stack Overflow | 4 weeks ago | Saveendra Ekanayake
    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.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.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/bind/ValidationException
  3. 0

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

    Stack Overflow | 10 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>()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cucumber Tests fail with HazelCast session replication

    GitHub | 1 year 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!
  6. 0
    samebug tip
    You need to use the spring-boot-maven-plugin in the build section of your pom.xml.

    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