Reputation: 1897
I want to deploy a java webapp (with web.xml and everything), packaged in any way (war, jar, I do not care) on an OSGI container (like Karaf). There are two important constraints:
I succed in making the bundles and deploying them automatically with that plugin and the maven-sling-plugin. What I miss is the correct configuration to package my bundle as a WAB , that I've been told being the right kind of packaging for this, and without dependencies.
Upvotes: 4
Views: 1904
Reputation: 7215
Do you absolutely need a web.xml? I've recently gone through and updated a lot of webapps packaged as wars to convert them into pure bundles. Most of the information that you normally specify in a web.XML can also be specified in your manifest to be picked up by pax web (karaf's frontend to jetty). Thus far I haven't run into a single war that couldn't be converted into a pure bundle (which would satisfy your constraints).
Upvotes: 1