首页 文章

Jetty无法启动 - ContextHandler已停止

提问于
浏览
0

我试图找出根本原因而我的应用程序在Jelastic上运行时不起作用,而在本地运行maven jetty:run 它工作正常 .

server.log中

警告:设置系统属性和/或JVM参数 . 考虑使用--dry-run或--exec 2016-11-07 18:40:50.290:INFO :: main:登录初始化@ 1907ms 2016-11-07 18:40:50.605:警告:oejs.HomeBaseWarning:main: Jetty的这个实例不是从单独的目录运行的,不建议这样做 . 请参阅http://www.eclipse.org/jetty/documentation/current/startup.html上的文档2016-11-07 18:40:51.001:警告:oejx.XmlConfiguration:main:不推荐使用属性'jetty.host',使用'jetty.http.host'而不是2016-11-07 18:40:51.001:警告:oejx.XmlConfiguration:main:属性'jetty.port'已弃用,请使用'jetty.http.port'代替2016-11- 07 18:40:51.489:INFO:oejs.Server:main:jetty-9.3.7.v20160115 2016-11-07 18:40:51.712:INFO:oejdp.ScanningAppProvider:main:部署监视器[file:/// opt /repo/versions/9.3.7/webapps/],间隔1 2016-11-07 18:40:53.903:INFO:oejsh.ContextHandler:main:已启动oejwWebAppContext @ 66d2e7d9 {/,file:/// tmp / jetty -0.0.0.0-8080-root.war -_- any-7083438667455820054.dir / webapp /,AVAILABLE} {/ root.war} 2016-11-07 18:40:54.002:INFO:oejs.ServerConnector:main:Started ServerConnector @ 7f6c72a {HTTP / 1.1,[http / 1.1]} {0.0.0.0:8080} 2016-11-07 18:40:54.003:INFO:oejs.Server:main:Started @ 5619ms 2016-11-08 18: 53:38.156:INFO:oejs.ServerConnector:Thread-1:已停止ServerConn ector @ 7f6c72a {HTTP / 1.1,[http / 1.1]} {0.0.0.0:8080} 2016-11-08 18:53:38.431:INFO:oejsh.ContextHandler:Thread-1:停止oejwWebAppContext @ 66d2e7d9 {/, null,UNAVAILABLE} {/ root.war}警告:设置了系统属性和/或JVM参数 . 考虑使用--dry-run或--exec 2016-11-08 18:53:43.393:INFO :: main:登录初始化@ 1992ms 2016-11-08 18:53:43.599:警告:oejs.HomeBaseWarning:main: Jetty的这个实例不是从单独的目录运行的,不建议这样做 . 请参阅http://www.eclipse.org/jetty/documentation/current/startup.html上的文档2016-11-08 18:53:43.983:警告:oejx.XmlConfiguration:main:不推荐使用属性'jetty.host',使用'jetty.http.host'代替2016-11-08 18:53:43.984:警告:oejx.XmlConfiguration:main:属性'jetty.port'已弃用,请使用'jetty.http.port'代替2016-11- 08 18:53:44.400:INFO:oejs.Server:main:jetty-9.3.7.v20160115 2016-11-08 18:53:44.691:INFO:oejdp.ScanningAppProvider:main:部署监视器[file:/// opt /repo/versions/9.3.7/webapps/],间隔为1警告:系统属性和/或JVM参数设置 . 考虑使用--dry-run或--exec 2016-11-08 19:55:19.497:INFO :: main:登录初始化@ 2182ms 2016-11-08 19:55:19.700:警告:oejs.HomeBaseWarning:main: Jetty的这个实例不是从单独的目录运行的,不建议这样做 . 请参阅http://www.eclipse.org/jetty/documentation/current/startup.html上的文档2016-11-08 19:55:20.086:警告:oejx.XmlConfiguration:main:不推荐使用属性'jetty.host',使用'jetty.http.host'而不是2016-11-08 19:55:20.086:警告:oejx.XmlConfiguration:main:属性'jetty.port'已被弃用,请使用'jetty.http.port'而不是2016-11- 08 19:55:20.504:INFO:oejs.Server:main:jetty-9.3.7.v20160115 2016-11-08 19:55:20.706:INFO:oejdp.ScanningAppProvider:main:部署监视器[file:/// opt /repo/versions/9.3.7/webapps/],间隔为1

可能是Jetty服务器上的这个应用程序无法启动的主要原因是什么?任何提示?

1 回答

  • 2

    一些建议(来自输出):

    警告:oejs.HomeBaseWarning:main:这个Jetty实例不是从单独的目录运行,不建议这样做 . 请参阅http://www.eclipse.org/jetty/documentation/current/startup.html上的文档

    按照这些说明,设置正确的 ${jetty.base} 目录,不要更改,添加,删除,重命名或一般更改 ${jetty.home} 目录中的任何内容(也就是系统上的jetty-distribution目录. /opt/repo/versions/9.3.7/

    首先,在磁盘上的某个位置解压缩(或解压缩)jetty-distribution的新副本 . 然后按照制作 ${jetty.base} 目录的说明(这是您的特定Jetty实例的配置,包括webapps)

相关问题