Building a standard web project to host in Apache Karaf
As building a standard web application and WAR isn't really in the scope of this book, the focus of this recipe lies on the transformation of a standard WAR into a WAB.
Getting ready
The sample code for this recipe is available at https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter4/chapter4-recipe6.
How to do it…
Transforming a standard WAR project into a WAB is simple. So, let's take a look at the specialties around WAR and WAB files. For simplicity, let's call this project web project from here on.
Contrasting with a standard bundle project, where the classes reside directly in the JAR file, the classes of a web project should be contained in the classes
folder under the
Get Apache Karaf Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.