Apache Tomcat

As Apache Tomcat is only a Servlet container, there is no CDI implementation provided by default. This has both an upside and a downside to it. The upside is that we don't have to alter the default configuration and setup of Apache Tomcat in any way to use JBoss Weld with it. The downside is that all of our applications that utilize CDI need to bundle their own copy of JBoss Weld within WEB-INF/lib of the WAR.

If we don't already have Apache Tomcat installed, download the latest release from http://tomcat.apache.org/download-70.cgi and extract the contents of the ZIP. We will refer to the location where we extracted Apache Tomcat as CATALINA_HOME.

Note

At the time of publication, the most recent download for Apache Tomcat was 7.0.35. ...

Get JBoss Weld CDI for Java Platform 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.