By integrating OpenWebBeans with an existing tomcat installation you don't need to add any CDI container jars to your WAR files.
Instead, OpenWebBeans will get copied to the tomcat lib directory and activated for all webapps.
Note that while the script mentions tomcat-7 this also works for tomcat-8.x and tomcat-9.x
Download the latest OWB distribution bundle and unzip it.
Change to the unzipped OWB distribution directory and run the following script:
This will copy all necessary Apache OpenWebBeans jars over to your tomcat installation directory. It will also patch the tomcat context.xml and add org.apache.webbeans.web.tomcat7.ContextLifecycleListener.
We also provide another script which can be used to install OpenWebBeans and Apache MyFaces JSF Container into tomcat.
./install_owb_tomcat7_myfaces.sh somelocation/myfaces-core-assembly-2.2.8-bin.zip /path/to/your/tomcat/installation