简体   繁体   English

java.lang.NoClassDefFoundError:org / eclipse / jetty / server / NetworkConnector

[英]java.lang.NoClassDefFoundError: org/eclipse/jetty/server/NetworkConnector

I have seen some similar question like this , but unfortunately none of them helped me to figure out my issue. 我见过像一些类似的问题, 这个 ,但不幸的是他们没有帮我找出我的问题。 When i boot my spring mvc application i face with the following errors: 当我启动spring mvc应用程序时,我遇到以下错误:

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)


[2m2016-09-05 11:30:14.257[0;39m [31mERROR[0;39m [35m81080[0;39m [2m---[0;39m [2m[  restartedMain][0;39m [36mo.s.boot.SpringApplication              [0;39m [2m:[0;39m Application startup failed

java.lang.NoClassDefFoundError: org/eclipse/jetty/server/NetworkConnector
    at org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.start(JettyEmbeddedServletContainer.java:129) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.jar: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(SpringApplication.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 com.example.ClientManagmentSystemApplication.main(ClientManagmentSystemApplication.java:14) [classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.3.0.RELEASE.jar:1.3.0.RELEASE]
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.NetworkConnector
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_60]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_60]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_60]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_60]
    ... 16 common frames omitted

and here is my pom.xml file: 这是我的pom.xml文件:

<dependencies>
    <dependency>
        <groupId>com.fasterxml.jackson.datatype</groupId>
        <artifactId>jackson-datatype-jsr310</artifactId>
        <version>2.8.1</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <version>1.3.0.RELEASE</version>
    </dependency>               
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-hateoas</artifactId>
    </dependency>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.eclipse.jetty.aggregate</groupId>
        <artifactId>jetty-all</artifactId>
        <version>8.1.16.v20140903</version>
    </dependency>
</dependencies>

I tried to remove the devtool, but it still complains with the same errors. 我试图删除devtool,但它仍然抱怨相同的错误。 what can i do? 我能做什么?

I found the answer. 我找到了答案。 I don't know how does it happen, but the 8080 port was busy. 我不知道它是怎么发生的,但是8080端口正忙。 When i open it with the commands: 当我使用命令打开它时:

netstat -o -n -a | findstr 0.0:8080
taskkill -F -PID 3116

It works well. 它运作良好。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Java.lang.NoClassDefFoundError:org/eclipse/jetty/util/component/ContainerLifeCycle - Java.lang.NoClassDefFoundError: org/eclipse/jetty/util/component/ContainerLifeCycle Bean初始化失败; 嵌套的异常是java.lang.NoClassDefFoundError:org / eclipse / jetty / server / AbstractConnector - Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/server/AbstractConnector 将 PDF 文档索引到 Solr - 错误 500 java.lang.NoClassDefFoundError: org/eclipse/jetty/server/MultiPart - Index PDF Documents to Solr - Error 500 java.lang.NoClassDefFoundError: org/eclipse/jetty/server/MultiParts SparkJava Exception java.lang.NoClassDefFoundError:org / eclipse / jetty / websocket / server / pathmap / PathSpec - SparkJava Exception java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/server/pathmap/PathSpec 线程“ Thread-2” java.lang.NoClassDefFoundError中的异常:org / eclipse / jetty / server / Handler - Exception in thread “Thread-2” java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler 如何解决嵌套异常是 java.lang.NoClassDefFoundError: org/eclipse/jetty/server/session/SessionDataStore? - How to resolve nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/server/session/SessionDataStore? java.lang.NoClassDefFoundError:使用com.j256.simplejmx.web.JmxWebServer的org / eclipse / jetty / server / nio / SelectChannelConnector - java.lang.NoClassDefFoundError: org/eclipse/jetty/server/nio/SelectChannelConnector using com.j256.simplejmx.web.JmxWebServer 嵌入式Jetty java.lang.NoClassDefFoundError:org / mortbay / log / Log - Embedded Jetty java.lang.NoClassDefFoundError: org/mortbay/log/Log java.lang.NoClassDefFoundError:org / eclipse / draw2d / LightweightSystem - java.lang.NoClassDefFoundError: org/eclipse/draw2d/LightweightSystem java.lang.NoClassDefFoundError:org.eclipse.core.runtime.RegistryFactory - java.lang.NoClassDefFoundError: org.eclipse.core.runtime.RegistryFactory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM