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.


~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert