1 Reply Latest reply on May 5, 2003 5:05 PM by seanxu

    Tomcat integration

    seanxu Newbie

      I am trying to add a customized Valve to DefaultContext. It appears to me that Jboss-Tomcat server did not pick up the Valve.

      2003-05-05 14:56:55,799 DEBUG [org.apache.commons.digester.Digester] New match
      ='Server/Service/Engine/Host/DefaultContext/Valve'
      2003-05-05 14:56:55,799 DEBUG [org.apache.commons.digester.Digester] No rules
      found matching 'Server/Service/Engine/Host/DefaultContext/Valve'.
      2003-05-05 14:56:55,799 DEBUG [org.apache.commons.digester.Digester.sax] endElem
      ent(,Valve,Valve)

      -----------------

      Looking into the src, in ConfigHandler.java, there is no rule defined for /DefaultContext/Value. Here is the snippet of the code:

      ------------------------
      mapper.addRule(prefix + "/DefaultContext/Manager",
      mapper.objectCreate("org.apache.catalina.session.StandardManager", "
      className"));
      mapper.addRule(prefix + "/DefaultContext/Manager", mapper.setProperties
      ());
      mapper.addRule(prefix + "/DefaultContext/Manager",
      mapper.addChild("setManager", "org.apache.catalina.Manager"));

      // add container valve
      mapper.addRule(prefix+"/Valve", mapper.objectCreate(null, "className"))
      ;
      mapper.addRule(prefix+"/Valve", mapper.setProperties());
      mapper.addRule(prefix+"/Valve",
      mapper.setParent("setContainer", "org.apache.catalina.Container"));
      mapper.addRule(prefix+"/Valve",
      mapper.addChild("addValve", "org.apache.catalina.Valve"));
      -----------------------

      Is it supposed to be so? Can anyone shed some light on this?

      thanks.