This section contains specific notes about configuring WAF for specific servlet containers.
To prevent the enterprise.init from running twice at server startup, either:
Configure your servlet container so that it does not automatically reload webapps underneath the webapp directory.
Deploy your webapp to a non-standard webapp directory. This is the only option in Tomcat 4, as discussed in Tomcat 4.0 documentation at:
![]() | Note |
---|---|
Do not use Tomcat 4.0.3. It will result in a security exception at server startup. Instead, use Tomcat 4.0.6 (preferred) or Tomcat 4.1.x. |
Tomcat 4.1.x uses the AElfred non-validating parser instead of the Xerces parser. To use Xerces instead, in /etc/ccm-core.cfg enable the jre-args and set it to -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl.
If you use Tomcat 4.1.x, remove servlet.jar from your web application. This is due to a difference between the servlet 2.2 and 2.3 specifications.
![]() | Note |
---|---|
j2ee.jar includes a Tomcat reference implementation that you should not use. If you have a j2ee.jar in your CLASSPATH, make sure that your tomcat.jar comes before your j2ee.jar. |