Disabling APR connectors in JBoss EWS Tomcat
Environment
- JBoss Enterprise Web Server (EWS)
- Tomcat
Issue
- EWS Tomcat is automatically using the native/APR connectors, but we need to disable these. How can we do that?
Resolution
- Drop the AprLifecycleListener from your server.xml:
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
- And uninstall the native libraries.
-
If using an RPM installed EWS on RHEL, uninstall the tomcat-native package:
yum uninstall tomcat-native -
If using a zip installed EWS, remove the following files from your $EWS_HOME/tomcat6/lib directory:
- libapr-1.so.0
- libtcnative-1.so
-
- Now without detecting the native/APR libraries Tomcat won't use these connectors.
Root Cause
If you have a need for javax.imageio.stream or comet protocol, then you shouldn't use tcnative, but rather the Java connectors, or use the Comet processor that ships Tomcat/JBossWeb.
See JVM crash triggered by libtcnative for more details.
SBR
Product(s)
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.