编程语言
首页 > 编程语言> > java-Jetty(9.4.12):上下文启动失败o.e.j.w.WebAppContext@2af004b webapp /,不可用

java-Jetty(9.4.12):上下文启动失败o.e.j.w.WebAppContext@2af004b webapp /,不可用

作者:互联网

我正在使用码头(9.4.12)在macOS(Java 11)上提供Web应用程序.

尽管码头已经启动,但该服务仍然不可用.我和往常一样使用了相同的War文件,但是唯一的区别是,我已经将Java从版本10更新到了版本11.这个问题是否有可能的修复?

错误

Failed startup of context o.e.j.w.WebAppContext@2af004b{jaltantra,/jaltantra,file:///private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/,UNAVAILABLE}{/jaltantra.war}
MultiException[java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/optimizer/Pipe.class, 
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/optimizer/Pipe$FlowType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/EPATool$NodeVariableType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/quality/QualitySim.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/quality/QualitySim$1.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/EPATool.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Link$LinkType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Control.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Curve.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Source.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Field$RangeType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/NUConvert.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Tank.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Link.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Rule$Rulewords.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Control$ControlType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Pump$Type.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Field.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Pump.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Rule$Values.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Link$1.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Rule$Objects.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Rule$Operators.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Rule.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Rule$Varwords.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Curve$Coeffs.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Tank$MixType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Source$Type.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Link$StatType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/Curve$CurveType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/structures/NUConvert$1.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/PropertiesMap$FlowUnitsType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/PropertiesMap$Hydtype.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/Network$FileType.class
java.lang.RuntimeException: Error scanning file /private/var/folders/s8/sgl02rb122xcl3bfc22wtfch0000gn/T/jetty-0.0.0.0-8080-jaltantra.war-_jaltantra-any-4267422187513106243.dir/webapp/WEB-INF/classes/org/addition/epanet/network/PropertiesMap.class

解决方法:

扫描Java 11字节码仅为merged 4 days ago(2018年11月1日).

https://github.com/eclipse/jetty.project/issues/2941

Eclipse Jetty项目正在等待Asm 7.0 final的发布(于2018年10月27日发布),以便可以正确扫描Java 11字节码.

即将发布的Jetty 9.4.13版本应包含此修复程序.

同时,您可以:

>使用quickstart在生成时生成扫描结果,完全跳过运行时字节码扫描步骤.一些用户报告说,这对他们来说效果很好(甚至缩短了启动时间).
>或使用https://oss.sonatype.org/content/repositories/jetty-snapshots/中的Jetty 9.4.13-SNAPSHOT(直到完成9.4.13最终发行)
>针对Java 8构建类(直到最终的9.4.13版本可用)

标签:java-11,jetty,jetty-9,java
来源: https://codeday.me/bug/20191024/1924322.html