What bundles do I need to install? At least, this would have to be a servlet container / web server such as Jetty, but will the basic org.apache.felix.http.jetty
bundle do, or is there anything else needed to discover the web.xml
in other bundles?
Do I put the webapp in a standard WAR, add OSGi headers and am done? Or are there any webapp specific headers required for the OSGi environment?
What other configuration has to be done?
What are options to automate these steps using Maven?
I have tried deploying the org.apache.felix.http.jetty
bundle, and I get a Jetty answering with 404 on localhost:8080. Next, I tried a simple webapp with nothing but a static HTML file configured as a welcome-file
. As far as I can tell, Jetty doesn't even notice the deployment descriptor, at least deploying the test webapp into Felix doesn't change anything at all.