openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <>
Subject Re: Plugins & Tomcat
Date Wed, 27 Jul 2011 13:52:57 GMT

The openwebeans-tomcat7 (and 6) plugins will just programmatically add the WebBeansConfigurationListener.

The openwebbeans-tomcat plugins will also enable CDI Injection into Servlets! See TomcatInstanceManager.

The OWB tomcat plugins are very handy indeed!
And the CODI artifacts provided by the Apache MyFaces team are really a good starting point.


--- On Wed, 7/27/11, Gerhard Petracek <> wrote:

From: Gerhard Petracek <>
Subject: Re: Plugins & Tomcat
Date: Wednesday, July 27, 2011, 12:49 PM

hi gernot,
first of all: welcome @ owb!
you don't need it, if you are using tomcat only. if you would like to use the jee6 web-profile
based on tomcat, you have to use the tomcat-plugin.

you can use for example the myfaces archetype:mvn archetype:generate -DarchetypeCatalog=
#11) and you will get a hello world application with jsf2 + owb + codi which works on servletcontainers
like tomcat/jetty/...

(you just have to update the version numbers in the pom file, if you would like to use the
latest versions.)

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

2011/7/27 Gernot <>

Is there somewhere any documentation about plugins?

concrete questions:

I use Tomcat 7, so I add the tomcat7plugin and add <Listener

className="org.apache.webbeans.web.tomcat.ContextLifecycleListener" />

to server.xml,

do I also have to add


or does the ContextLifecycleListener the configuration stuff?

Which plugins are required for Tomcat (and JSF2)?

thx gernot

View raw message