Women in Technology

Hear us Roar

  What's New in Tomcat 5
Subject:   BadInputFilterValve Compilation Failure In Tomcat 5
Date:   2004-07-15 14:13:54
From:   chuckygunn
When I tried to compile BadInputFilterValve in Tomcat 5 following the instruction in the book, I got the following error messages:

"cannot access javax.management.MBeanRegistration
file javax/management/MBeanRegistration.class not found
public class BadInputFilterValve
com/oreilly/tomcat/valves/BadInputFilterValve.java:217: cannot resolve symbol
symbol : variable this
location: class com.oreilly.tomcat.valves.BadInputFilterValve
this.escapeAngleBrackets = escapeAngleBrackets;


Full Threads Newest First

Showing messages 1 through 3 of 3.

  • BadInputFilterValve Compilation Failure In Tomcat 5
    2004-07-15 19:14:51  chuckygunn [View]

    Just woke up from a straight 30hr programming run... Sorry that I forgot to put down some system information. I was experiencing the compile errors when using Tomcat 5.0.18, with J2SDK 1.4.2, and J2EE 1.3.1 (and tried J2EE 1.4 but were disgusted by it). Any help will be appreciated. Spent 10+ hrs on this...
    • BadInputFilterValve Compilation Failure In Tomcat 5
      2004-07-15 22:58:10  chuckygunn [View]

      solution found. well, if u r using Tomcat5.0.18, you'll need to get the jmx from the $CATALINA_HOME/common/lib. if u r using the latest(as of now), i.e. 5.0.27, the classpath for compilation of the BadInputFilterValve.java should be:


      The last sub-path depends on where you uncompress the jakarta-tomcat-5.0.27-embed tar ball.

      • BadInputFilterValve Compilation Failure In Tomcat 5
        2004-07-16 08:04:38  chuckygunn [View]

        well, pardon me for writing so many lines here. it turns out that jmx.jar exists under $CATALINA_HOME/bin. it, in turn, has the required class for compilation.