I am attempting to get Jetty 9.4 with JSP support running in our applications OSGI container. I've used the information at https://www.eclipse.org/jetty/documentation/9.4.x/framework-jetty-osgi.html to get jetty running and serving static pages. WHen I try accessing a JSP I get "java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.eclipse.jetty.apache.jsp.JettyJasperInitializer not a subtype" I"m looking for examples of running Jetty in a plain OSGI container to help me debug my configuration. I'd also be interested in examples of using Pax Web in an OSGI container. So far all the Pax Web doc I've found assumes your running in Karaf.
问问题
143 次
1 回答
1
Jetty 自己的jetty-osgi/test-jetty-osgi
使用PAX Web 来测试它自己的实现。
它基于jetty-osgi-boot-jsp
项目中存在的行为
注意:Apache Aries Spi-Fly 是强制性要求。不幸的是,这迫使您坚持使用 Java 8(因为它还不支持 ASM 7)
于 2018-10-29T17:47:46.577 回答