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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /