• [求解!!!] springboot在运行web项目时报错


     1 2017-05-10 17:40:54.343 INFO 4852 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@b9e255: startup date [Wed May 10 17:40:54 CST 2017]; root of context hierarchy
     2 
     3 2017-05-10 17:40:55.303 WARN 4852 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 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]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory]: Factory method 'tomcatEmbeddedServletContainerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/tomcat/ContextBind
     4 2017-05-10 17:40:55.315 ERROR 4852 --- [ main] o.s.boot.SpringApplication : Application startup failed
     5 
     6 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]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory]: Factory method 'tomcatEmbeddedServletContainerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/tomcat/ContextBind
     7 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
     8 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
     9 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    10 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    11 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    12 at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    13 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    14 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    15 at com.study.ivy.springbootwep.App.main(App.java:11) [classes/:na]
    16 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory]: Factory method 'tomcatEmbeddedServletContainerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/tomcat/ContextBind
    17 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    18 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    19 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    20 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    21 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    22 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    23 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    24 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    25 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    26 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:199) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    27 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    28 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    29 ... 8 common frames omitted
    30 Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory]: Factory method 'tomcatEmbeddedServletContainerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/tomcat/ContextBind
    31 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    32 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    33 ... 19 common frames omitted
    34 Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/ContextBind
    35 at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_131]
    36 at java.lang.ClassLoader.defineClass(Unknown Source) ~[na:1.8.0_131]
    37 at java.security.SecureClassLoader.defineClass(Unknown Source) ~[na:1.8.0_131]
    38 at java.net.URLClassLoader.defineClass(Unknown Source) ~[na:1.8.0_131]
    39 at java.net.URLClassLoader.access$100(Unknown Source) ~[na:1.8.0_131]
    40 at java.net.URLClassLoader$1.run(Unknown Source) ~[na:1.8.0_131]
    41 at java.net.URLClassLoader$1.run(Unknown Source) ~[na:1.8.0_131]
    42 at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_131]
    43 at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_131]
    44 at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
    45 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
    46 at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
    47 at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.tomcatEmbeddedServletContainerFactory(EmbeddedServletContainerAutoConfiguration.java:79) ~[spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    48 at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat$$EnhancerBySpringCGLIB$$1156f21d.CGLIB$tomcatEmbeddedServletContainerFactory$0(<generated>) ~[spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    49 at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat$$EnhancerBySpringCGLIB$$1156f21d$$FastClassBySpringCGLIB$$b6baf62.invoke(<generated>) ~[spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    50 at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    51 at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    52 at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat$$EnhancerBySpringCGLIB$$1156f21d.tomcatEmbeddedServletContainerFactory(<generated>) ~[spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    53 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
    54 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_131]
    55 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_131]
    56 at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_131]
    57 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    58 ... 20 common frames omitted
    59 Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.ContextBind
    60 at java.net.URLClassLoader$1.run(Unknown Source) ~[na:1.8.0_131]
    61 at java.net.URLClassLoader$1.run(Unknown Source) ~[na:1.8.0_131]
    62 at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_131]
    63 at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_131]
    64 at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
    65 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
    66 at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
    67 ... 43 common frames omitted
    68 Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
    69 at java.util.zip.ZipFile.read(Native Method) ~[na:1.8.0_131]
    70 at java.util.zip.ZipFile.access$1400(Unknown Source) ~[na:1.8.0_131]
    71 at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source) ~[na:1.8.0_131]
    72 at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source) ~[na:1.8.0_131]
    73 at java.util.zip.InflaterInputStream.read(Unknown Source) ~[na:1.8.0_131]
    74 at sun.misc.Resource.getBytes(Unknown Source) ~[na:1.8.0_131]
    75 at java.net.URLClassLoader.defineClass(Unknown Source) ~[na:1.8.0_131]
    76 at java.net.URLClassLoader.access$100(Unknown Source) ~[na:1.8.0_131]
    77 ... 50 common frames omitted
    78 
    79  
  • 相关阅读:
    Ubuntu 虚拟机空间不足增加空间笔记
    am335x sd卡启动开启识别emmc kernel 上的改动
    Delphi实现树型结构具体实例
    学习 TTreeView [15]
    delphi中Treeview的使用介绍
    按下F2编辑dxDBTreeView的节点
    dbtreeview
    我的dbtreeview–treeview直接连接数据表_delphi教程
    SqlDbx连接oracle(可用)
    SqlDbx连接oracle(无需安装Oracle客户端)
  • 原文地址:https://www.cnblogs.com/ivy-xu/p/6837334.html
Copyright © 2020-2023  润新知