Wildfly 16中Apache Sling代码的运行时异常

时间:2019-05-08 14:49:05

标签: osgi wildfly osgi-bundle sling

我们已经在WIldfly 10中成功运行了自定义的Apache Sling代码。

我们正在将代码从WIldfly 10迁移到最新的WIldfly16。在Javax Servlet 4.0上运行的WIldfly 16。但是Sling org.apache.felix.http.bridge(3.0.18)在javax.servlet 3.1.0上运行,无法在Wildfly 16中启动应用程序。

我们已将pom.xml中的javax.servlet版本更改为4.0.0,但这不能解决问题。非常感谢在这方面的任何帮助。

09:09:50,956 ERROR [io.undertow.servlet] (FelixStartLevel) ERROR: Error starting slinginstall:D:\code\framework\wildfly-16.0.0.Final\sling\_sling\startup\1\org.apache.felix.http.bridge-3.0.18.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]): org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案