0 Replies Latest reply on Mar 3, 2005 5:33 AM by Hany Bee

    how to set Tomcat context valve for jmx-console?

    Hany Bee Newbie

      How can I set the context valve for jmx-console? The goal is that, I want to let only certain IP addresses to access jmx-console, and not everyone.

      I want to do something like

      <Context path="/jmx-console" docBase="jmx-console.war">
       <Valve className="org.apache.catalina.valves.RemoteAddrValve"

      But if I add this to Tomcat's server.xml file, nothing can be deployed, and Jboss throws a ton of error messages about failed deployment. Basically, almost everything under the deploy directory can't be deployed.

      In fact, Tomcat is not even started at all. I tried absolute path for docBase too, but that wouldn't help. That exact same way of configuration works just fine with Tomcat standalone, but wouldn't do when Tomcat is embedded in JBoss.

      How can I use the context valve in Tomcat to do that? Or is there a better way?