2016-11-08 136 views
0

我想弄清楚根本原因,而我的应用程序在Jelastic上运行时不起作用,而在本地运行maven jetty:run它工作正常。码头无法启动 - ContextHandler停止

的server.log

警告:系统性能和/或JVM args设置。考虑使用 - 干运行或--exec 2016-11-07 18:40:50.290:INFO :: main:记录初始化@ 1907ms 2016-11-07 18:40:50.605:WARN:oejs.HomeBaseWarning: main:Jetty的这个实例是 没有从单独的{jetty.base}目录运行,建议不是 。请参阅文档 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:WARN:oejx.XmlConfiguration:main:Property'jetty.port'is deprecated,use'jetty.http.port'instead instead 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 /] at interval 1 2016-11-07 18:40:53.903:INFO:oejsh.ContextHandler:main:Started oejwWebAppContext @ 66d2e7d9 {/,File:/ /mp/jetty-0.0.0.0-8080-root的.war -_-任何-7083438667455820054.dir/web应用/,AV AILABLE} {/ 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:Stopped ServerConnector @ 7f6c72a {HTTP/1.1,[http/1.1]} {0.0.0.0:8080} 2016-11-08 18:53:38.431:INFO:oejsh.ContextHandler:Thread-1:Stopped 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:WARN:oejs.HomeBaseWarning:main :Jetty的此实例 未从单独的{jetty.base}目录运行,因此建议不要使用此 。请参阅文档 http://www.eclipse.org/jetty/documentation/current/startup.html 2016-11-08 18:53:43.983:WARN:oejx.XmlConfiguration:main:属性 'jetty.host'已弃用,请使用'jetty.http.host'代替2016-11-08 18:53:43.984:WARN:oejx.XmlConfiguration:main:Property'jetty.port'is deprecated,use'jetty.http.port'instead 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:WARN:oejs.HomeBaseWarning:main :Jetty的此实例 未从单独的{jetty.base}目录运行,因此建议不要使用此 。请参阅文档 http://www.eclipse.org/jetty/documentation/current/startup.html 2016-11-08 19:55:20.086:WARN:oejx.XmlConfiguration:main:属性 'jetty.host'已弃用,请使用'jetty.http.host'代替2016-11-08 19:55:20.086:WARN:oejx.XmlConfiguration:main:Property'jetty.port'is deprecated,use'jetty.http.port'instead 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:主:部署监控 [文件:///opt/repo/versions/9.3.7/webapps/]在间隔1

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

回答

2

几点建议(从输出):

WARN:oejs.HomeBaseWarning:主要:码头的此实例不从单独{jetty.base}目录中运行,这是不推荐的。见文档在http://www.eclipse.org/jetty/documentation/current/startup.html

请遵循这些说明,建立一个适当的${jetty.base}目录,不改变,添加,删除,重命名,或一般在${jetty.home}目录(你的系统上做任何更改又名码头分布目录。/opt/repo/versions/9.3.7/

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