Apache Tomcat


tomcat

Below are some small notes I've jotted down when working with Tomcat.

Performance tuning

Calling Context#getAttribute()

We have experience performance problems becaues of this method:

org.apache.catalina.core.ApplicationContext.findAttribute(String) which is synchronised. Thus, limit your application's usage of this method.

Cannot find javax/servlet/Filter

I all of a sudden started getting this exception on my Tomcat 6.0.10:

SEVERE: Exception starting filter authenticationFilter java.lang.NoClassDefFoundError: javax/servlet/Filter

Touching the $CATALINA_HOME/lib/servlet-api.jar seemed to miraculously fix the problem.


Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@emacs.ch ~ 🐦 @torsteinkrause