This page describes new-style web application OSGi-bundles based on http-util-1.5.0
Dependencies
http-util provides a dynamic servlet registration listener, which registers servlets at an OSGi HttpService when the bundle is started or when the HttpService appears.
<dependency> <groupId>org.clazzes.util</groupId> <artifactId>http-util</artifactId> <version>1.5.0</version> </dependency>
http-util is a runtime dependency, too.
Dependencies for GWT Projects
gwt-osgi defines org.clazzes.gwt.osgi.AopRemoteServiceSErvlet, which adapts GWT's REmoteServiceSErvlet to the class loading specifics of an OSGi container. gwt-sec is the swiss army knife for using a shared login service among all your web apps deployed in one OSGi container.
<dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>2.4.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.clazzes.gwt</groupId> <artifactId>gwt-osgi</artifactId> <version>2.4.0.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.clazzes.gwt</groupId> <artifactId>gwt-sec</artifactId> <version>1.1.0</version> </dependency>
Warning: gwt-osgi-2.4.0.1 is not compatible with the new class loader based resource resolution scheme described below.
gwt-osgi and gwt-sec are alos required as runtime dependencies inside your OSGi container.
Dependencies for DOJO projects
dojo-module-api and dojo-provider are exposing DOJO's JavaScript files under /dojo-1.8 in your OSGi-deployed HttpService.
<dependency> <groupId>org.clazzes.dojo</groupId> <artifactId>dojo-module-api</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.clazzes.dojo</groupId> <artifactId>dojo-provider</artifactId> <version>1.8.0.2</version> </dependency> <dependency> <groupId>org.clazzes.dojo</groupId> <artifactId>gson-rpc2</artifactId> <version>1.0.1</version> </dependency>
Additional Runtime Requirements
The http service of choice is pax HTTP Service http://team.ops4j.org/wiki/display/paxweb/Pax+Web, to be installed on your OSGi console using:
install -s http://repo2.maven.org/maven2/org/ops4j/pax/web/pax-web-jetty-bundle/2.1.0/pax-web-jetty-bundle-2.1.0.jar