SaxNotRecognitizedException在Scala 2.6中起作用

SaxNotRecognitizedException在Scala 2.6中起作用,scala,playframework,akka,akka-http,playframework-2.6,Scala,Playframework,Akka,Akka Http,Playframework 2.6,我正在从Play 2.5迁移到2.6,应用程序编译没有问题,但当我开始Play时,我得到了下面的异常。该错误提到了AkkaHttpServer——播放2.6中的新默认HTTP服务器。我尝试添加到application.conf从Play网站获取的Akka HTTP服务器标准配置,但仍然出现相同的错误 查看数据,它表示有一个解析器无法识别的属性。有没有办法解决这个问题 play.api.Unexpected异常:意外 异常[ExceptionInInitializerError:null] pla

我正在从Play 2.5迁移到2.6,应用程序编译没有问题,但当我开始Play时,我得到了下面的异常。该错误提到了AkkaHttpServer——播放2.6中的新默认HTTP服务器。我尝试添加到
application.conf
从Play网站获取的Akka HTTP服务器标准配置,但仍然出现相同的错误

查看数据,它表示有一个解析器无法识别的属性。有没有办法解决这个问题

play.api.Unexpected异常:意外 异常[ExceptionInInitializerError:null] play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:190) at play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:124) 播放时.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:202) 在play.core.server.AkkaHttpServer.$anonfun$createServerBinding$1(AkkaHttpServer.scala:117) 在akka.stream.impl.fusing.mapsync$$anon$25.onPush(Ops.scala:1194) 在akka.stream.impl.fusing.graphinterpler.processPush(graphinterpler.scala:519) 在akka.stream.impl.fusing.graphinterpler.processEvent(graphinterpler.scala:482) 在akka.stream.impl.fusing.graphinterpler.execute(graphinterpler.scala:378) 在akka.stream.impl.fusing.graphinterpertershell.runBatch(ActorGraphExplorer.scala:585) 在akka.stream.impl.fusing.graphinterperterShell$AsyncInput.execute(ActorGraphExplorer.scala:469)中 原因:java.lang.ExceptionInInitializerError:null play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:177) at play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:124) 播放时.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:202) 在play.core.server.AkkaHttpServer.$anonfun$createServerBinding$1(AkkaHttpServer.scala:117) 在akka.stream.impl.fusing.mapsync$$anon$25.onPush(Ops.scala:1194) 在akka.stream.impl.fusing.graphinterpler.processPush(graphinterpler.scala:519) 在akka.stream.impl.fusing.graphinterpler.processEvent(graphinterpler.scala:482) 在akka.stream.impl.fusing.graphinterpler.execute(graphinterpler.scala:378) 在akka.stream.impl.fusing.graphinterpertershell.runBatch(ActorGraphExplorer.scala:585) 在akka.stream.impl.fusing.graphinterperterShell$AsyncInput.execute(ActorGraphExplorer.scala:469)中 原因:org.xml.sax.SAXNotRecognizedException: 位于org.apache.xerces.parsers.AbstractSAXParser.setFeature(AbstractSAXParser.java:1508) 位于org.apache.xerces.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java:145) 位于org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:128) 位于org.apache.xerces.jaxp.saxparserfactorympl.newSAXParserImpl(saxparserfactorympl.java:112) 位于org.apache.xerces.jaxp.saxparserfactorympl.setFeature(saxparserfactorympl.java:140) 在play.api.play$(play.scala:58) 在play.api.play$(play.scala) play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:177) at play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:124) 播放时.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:202)


经过长时间的错误测试,我发现将
commons dbcp
的版本从1.2更改为1.4解决了这个问题。错误消息似乎没有指向解决方案