Title: OpenWebBeans Tomcat integration Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . https://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. # Adding OpenWebBeans to an Apache Tomcat installation 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 ## Downloading the latest OpenWebBeans distribution Download the latest [OWB distribution bundle](download.html) and unzip it. ## Integrating Apache OpenWebBeans with Apache Tomcat Change to the unzipped OWB distribution directory and run the following script: ./install_owb_tomcat7.sh /path/to/your/tomcat/installation 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. ## Integrating OWB and Apache MyFaces with tomcat We also provide another script which can be used to install OpenWebBeans and [Apache MyFaces JSF Container](http://myfaces.apache.org) into tomcat. ./install_owb_tomcat7_myfaces.sh somelocation/myfaces-core-assembly-2.2.8-bin.zip /path/to/your/tomcat/installation