The goal of the project is to use jboss-modules in Tomcat.
-
Install Tomcat - I've tested with Tomcat 7.0
-
Edit bin/setclasspath.sh and add the following line at the end of the file :
CLASSPATH="$CATALINA_HOME"/lib/*
-
Change the properties in the parent pom.xml (especially tomcat.home)
-
Run "mvn install"
-
Run Tomcat
-
Open http://localhost:8080/app-web in your favorite browser
Because modularity is cool and JBoss Modules is the way.
With Tomcat, you can switch the classloader of an application by specifying a loader in the META-INF/context.xml. The tomcat-loader module is such a loader which tells Tomcat to use a JBoss Modules classloader.
The JSPs a still loaded by the JasperLoader. The main change is that the JasperLoader is a child classloader of the main Module. It can therefore take advantage of modularity.
For the moment, it only works with a simple servlet, in a separate module (alpha1), and with a JSP (alpha2).
The following features have to be implemented :
- Servlets, filters and other classes in WEB-INF/classes
- jar files in WEB-INF/lib
- Unload classes on hot deploy
- ...