调试Jetty webapp初始化

时间:2014-07-08 14:31:56

标签: java web-applications deployment jetty

使用本指南在我的Debian服务器上安装最新的Jetty 9:http://techtraits.com/jetty9install/

在没有任何webapps的情况下启动时运行完美,但是在运行webapps时启动:

# service jetty start
Starting Jetty: . 
FAILED T juuli  8 17:13:24 EEST 2014

所以我检查了logs / start.log:

StartLog Establishing /opt/jetty/logs/start.log on Tue Jul 08 17:13:16 EEST 2014

和logs / 2014_07_08.stderrout.log:

2014-07-08 17:13:17.584:INFO:oejs.Server:main: jetty-9.2.0.v20140526
2014-07-08 17:13:17.657:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/opt/jetty/webapps/] at interval 1

我尝试修改resources / log4j.properties:

log4j.rootLogger=DEBUG, FILE

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.appender.FILE.File=lll.out

我的服务器上没有lll.out.

我尝试将其作为:

运行
java -jar start.jar --daemon -DDEBUG=true -Dorg.eclipse.jetty.LEVEL=DEBUG

我得到的只是:

WARNING: System properties and/or JVM args set.  Consider using --dry-run or --exec
System Property [DEBUG] has been deprecated! (Use org.eclipse.jetty.LEVEL=DEBUG instead)
2014-07-08 17:21:27.638:INFO::main: Logging initialized @742ms
2014-07-08 17:21:27.701:DBUG:oejx.XmlParser:main: parse: file:/opt/jetty/etc/jetty.xml
2014-07-08 17:21:27.706:DBUG:oejx.XmlParser:main: parsing: sid=file:/opt/jetty/etc/jetty.xml,pid=null
2014-07-08 17:21:27.720:DBUG:oejx.XmlParser:main: resolveEntity(-//Jetty//Configure//EN, http://www.eclipse.org/jetty/configure_9_0.dtd)
2014-07-08 17:21:27.721:DBUG:oejx.XmlParser:main: Redirected entity http://www.eclipse.org/jetty/configure_9_0.dtd --> jar:file:/opt/jetty/lib/jetty-xml-9.2.0.v20140526.jar!/org/eclipse/jetty/xml/configure_9_0.dtd
2014-07-08 17:21:27.828:DBUG:oejuc.ContainerLifeCycle:main: org.eclipse.jetty.server.Server@3d82c5f3 added {qtp458209687{STOPPED,8<=0<=200,i=0,q=0},AUTO}
2014-07-08 17:21:27.834:DBUG:oejx.XmlConfiguration:main: XML get ThreadPool
2014-07-08 17:21:27.846:DBUG:oejx.XmlConfiguration:main: XML qtp458209687{STOPPED,8<=0<=200,i=0,q=0}.setMinThreads(10)
2014-07-08 17:21:27.847:DBUG:oejx.XmlConfiguration:main: XML qtp458209687{STOPPED,10<=0<=200,i=0,q=0}.setMaxThreads(200)
2014-07-08 17:21:27.847:DBUG:oejx.XmlConfiguration:main: XML qtp458209687{STOPPED,10<=0<=200,i=0,q=0}.setIdleTimeout(60000)
2014-07-08 17:21:27.850:DBUG:oejx.XmlConfiguration:main: XML qtp458209687{STOPPED,10<=0<=200,i=0,q=0}.setDetailedDump(false)
2014-07-08 17:21:27.853:DBUG:oejx.XmlConfiguration:main: XML new class org.eclipse.jetty.util.thread.ScheduledExecutorScheduler
2014-07-08 17:21:27.853:DBUG:oejx.XmlConfiguration:main: using normal mapping
2014-07-08 17:21:27.856:DBUG:oejx.XmlConfiguration:main: XML call addBean
... A lot of quiet debu log ...
2014-07-08 17:21:35.508:DBUG:oeja.AnnotationParser:qtp458209687-12: Scanning class from jar jar:file:/opt/jetty/webapps/las/WEB-INF/lib/hibernate-search-engine-4.5.1.Final.jar!/org/hibernate/search/bridge/builtin/IterableBridge.class
2014-07-08 17:21:35.508:DBUG:oeja.AnnotationParser:qtp458209687-12: Scanning class from jar jar:file:/opt/jetty/webapps/las/WEB-INF/lib/hibernate-search-engine-4.5.1.Final.jar!/org/hibernate/search/bridge/builtin/ShortBridge.class
2014-07-08 17:21:35.510:DBUG:oeja.AnnotationParser:qtp458209687-12: Scanning class from jar jar:file:/opt/jetty/webapps/las/WEB-INF/lib/hibernate-search-engine-4.5.1.Final.jar!/org/hibernate/search/bridge/builtin/CalendarBridge.class
2014-07-08 17:21:35.512:DBUG:oeja.AnnotationParser:qtp458209687-12: Scanning class from jar jar:file:/opt/jetty/webapps/las/WEB-INF/lib/hibernate-search-engine-4.5.1.Final.jar!/org/hibernate/search/bridge/builtin/NumberBridge.class
2014-07-08 17:21:35.513:DBUG:oeja.AnnotationParser:qtp458209687-12: Scanning class from jar jar:file:/opt/jetty/webapps/las/WEB-INF/lib/hibernate-search-engine-4.5.1.Final.jar!/org/hibernate/search/bridge/builtin/UriBridge.class
2014-07-08 17:21:35.514:DBUG:oeja.AnnotationParser:qtp458209687-12: Scanning class from jar jar:file:/opt/jetty/webapps/las/WEB-INF/lib/hibernate-search-engine-4.5.1.Final.jar!/org/hibernate/search/bridge/builtin/LongNumericFieldBridge.class
Killed

在其他情况下,使用不同webapp的相同设置对我有用。如果我能想出某种类型的错误信息就好了,但是我一直在苦苦挣扎,没有运气,现在已经有一段时间了。如果有人有建议我会非常感激。

0 个答案:

没有答案