Configuring TomEE

Once the TomEE is extracted, we need to customize to our requirements so that our application will run on TomEE. This includes adding the required third party jars, properties file and configuring data sources and so on.

The catalina.properties file in the conf folder needs to be modified so as to make the TomEE container to pick custom configuration or jars defined by user.

shared.loader=${catalina.home}/shared/lib,${catalina.home}/shared/lib/*.jar, ${catalina.home}/shared/conf

Continuing the same file we need to mention the coherence jar not to be scanned using JarScanner functionality. To achieve this in the same catalina.properties file, find the tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ and add coherence*.jar.

Note: To solve the DB2 latest Jar issues that comes with software, we need to mention the pdq.jar not be scaaned using Jar Scanner funcationality.

Example

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\
--
--
coherence*.jar,\

--

pdq*.jar,\
--

The above configurations will be same for any instance of TomEE.