有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

使用jetty启动应用程序时发生java错误

我使用maven插件“Vang maven plugin”创建了一个jar,其中包含war文件和jar文件。 当我尝试做"java -jar myApp.jar"

我得到以下错误

WARN [main] log.warn(50) | Failed startup of context o.e.j.w.WebAppContext{/,null},file:/Users/hrastogi/chatplus_code_new/chatplus_server/feed-monitor/jetty-pkg/target/feedmonitorservice-1.0.0-SNAPSHOT.jar
java.io.FileNotFoundException: /jetty-pkg/target/work/webapp/LICENSE (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at org.eclipse.jetty.util.resource.JarResource.copyTo(JarResource.java:226)
    at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:449)
    at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:49)
    at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:465)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:495)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:226)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93)
    at org.eclipse.jetty.server.Server.doStart(Server.java:243)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at bekkopen.jetty.Main.start(Main.java:99)
    at bekkopen.jetty.Main.main(Main.java:29)

许可证文件位于文件夹中

任何指针都会有很大帮助

谢谢


共 (1) 个答案