jetty报错求助Failed startup of context o.e.j.w.WebAppContext@3ecf72fd

qq_35135216 2016-05-30 11:07:54
2016-05-30 23:04:42.433:INFO::main: Logging initialized @360ms
java.io.FileNotFoundException: .\jetty\etc\jetty.xml (系统找不到指定的路径。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at org.jetty.demo.JettyCustomServer.readXmlConfig(JettyCustomServer.java:70)
at org.jetty.demo.JettyCustomServer.<init>(JettyCustomServer.java:45)
at org.jetty.demo.JettyCustomServer.<init>(JettyCustomServer.java:32)
at org.jetty.demo.JettyServerStart.main(JettyServerStart.java:5)
2016-05-30 23:04:42.777:INFO:oejs.Server:main: jetty-9.3.9.v20160517
2016-05-30 23:04:43.095:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@3ecf72fd{/testContext,file:///C:/Android/jetty/webRoot/,null}
java.nio.file.NoSuchFileException: C:\Android\jetty\jetty\etc\webdefault.xml
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
at java.nio.file.Files.newInputStream(Unknown Source)
at org.eclipse.jetty.util.resource.PathResource.getInputStream(PathResource.java:380)
at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:54)
at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:207)
at org.eclipse.jetty.webapp.MetaData.setDefaults(MetaData.java:164)
at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:53)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:411)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:378)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.jetty.demo.JettyCustomServer.startServer(JettyCustomServer.java:105)
at org.jetty.demo.JettyServerStart.main(JettyServerStart.java:7)
2016-05-30 23:04:43.098:INFO:oejs.Server:main: Started @1028ms
current thread:8| idle thread:8
求解
...全文
7235 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_31301003 2019-06-12
  • 打赏
  • 举报
回复
可能是pom中配的依赖版本有冲突
qq_35135216 2016-06-01
  • 打赏
  • 举报
回复
引用 1 楼 xiaofanku 的回复:
设了JETTY_HOME了吗? jetty所在路径中能找到这个核心配置文件:<JETTY_HOME>/etc/jetty.xml吗?
谢谢!好像就是这样
街头小贩 2016-05-31
  • 打赏
  • 举报
回复
设了JETTY_HOME了吗? jetty所在路径中能找到这个核心配置文件:<JETTY_HOME>/etc/jetty.xml吗?

5,658

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧