• Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.continuation.ContinuationThrowable


    1、错误描述

    2017-03-14 10:43:02.328:INFO:oejs.Server:jetty-8.1.21.v20160908
    2017-03-14 10:43:02.951:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/,file:/F:/workspace/TYIF/src/main/webapp/}
    java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
    	at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
    	at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:366)
    	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
    	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    	at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    	at com.you.tyif.utils.Jetty.startServer(Jetty.java:117)
    	at com.you.tyif.utils.Jetty.main(Jetty.java:75)
    Caused by: 
    java.lang.NoClassDefFoundError: org/eclipse/jetty/continuation/ContinuationThrowable
    	at org.eclipse.jetty.servlet.ServletContextHandler.newServletHandler(ServletContextHandler.java:207)
    	at org.eclipse.jetty.servlet.ServletContextHandler.getServletHandler(ServletContextHandler.java:288)
    	at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitServlet(StandardDescriptorProcessor.java:205)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
    	at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
    	at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:366)
    	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
    	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    	at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    	at com.you.tyif.utils.Jetty.startServer(Jetty.java:117)
    	at com.you.tyif.utils.Jetty.main(Jetty.java:75)
    Caused by: 
    java.lang.ClassNotFoundException: org.eclipse.jetty.continuation.ContinuationThrowable
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    	at org.eclipse.jetty.servlet.ServletContextHandler.newServletHandler(ServletContextHandler.java:207)
    	at org.eclipse.jetty.servlet.ServletContextHandler.getServletHandler(ServletContextHandler.java:288)
    	at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitServlet(StandardDescriptorProcessor.java:205)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
    	at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
    	at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:366)
    	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
    	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    	at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    	at com.you.tyif.utils.Jetty.startServer(Jetty.java:117)
    	at com.you.tyif.utils.Jetty.main(Jetty.java:75)
    2017-03-14 10:43:03.032:INFO:oejs.AbstractConnector:Started SelectChannelConnector@127.0.0.1:8080
    

    2、错误原因

          由错误提示可知,是缺少有关jetty的jar包


    3、解决办法

    (1)直接将jar包jetty-continuation-8.1.21.v20160908.jar复制到到lib目录下

    (2)在pom.xml添加jar配置

  • 相关阅读:
    Dijkstra模版
    Trie树|字典树的简介及实现
    hdoj_2066一个人的旅行
    什么是java对象的强、软、弱和虚引用
    cxf调用客户端的方法
    CXF几种客户端调用性能
    csf几种调用的性能考虑
    cxf生成服务器端
    CXF在jdk1.6中运行异常解决
    CXF几种客户端调用性能
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313922.html
Copyright © 2020-2023  润新知