<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Trong,<br>
      <br>
      Notes inline.<br>
      <br>
      On 18/03/13 12:25, Trong Tran wrote:<br>
    </div>
    <blockquote
cite="mid:CAAUYKa+ywirjJXYoZRTWGQiVYme8GrpSYXZAhi05-Tczhb8tCA@mail.gmail.com"
      type="cite">Hi,<br>
      <br>
      We can easily reproduce the problem in Tomcat by just reference
      the PortalClusteredSSOSupportValve class in a Servlet Context
      listener of a web app, to load it.<br>
    </blockquote>
    yes, I am able to reproduce it with Servlet Context listener. But I
    am still not sure if I understand the usecase. Why you need to
    access PortalClusteredSSOSupportValve from some Servlet Context
    listener on Tomcat? Thing is that PortalClusteredSSOSupportValve is
    meant to be used only in JBoss because it uses JBoss specific
    clustered SSO valve. It does not makes sense to use it in Tomcat.<br>
    <br>
    And it seems that moving PortalClusteredSSOSupportValve to
    packaging/jboss7 won't solve your issue, because than you won't be
    able to compile your listener anyway because
    PortalClusteredSSOSupportValve won't be available. But maybe I still
    don't uderstand the usecase...<br>
    <br>
    <br>
    <br>
    I am able to have listener on Tomcat with code like this and it
    works without throwing error:<br>
    <br>
    public class PortalSSOValveListener implements
    ServletContextListener {<br>
    <br>
    &nbsp;&nbsp;&nbsp; ValveBase portalClusteredSSOSupportValve;<br>
    &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; public void contextInitialized(ServletContextEvent sce) {<br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (new J2EEServerInfo().isJBoss()) {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PortalClusteredSSOSupportValve casted =
    (PortalClusteredSSOSupportValve)portalClusteredSSOSupportValve;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Do something with the valve<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
    &nbsp;&nbsp;&nbsp; }<br>
    &nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; public void contextDestroyed(ServletContextEvent sce) {<br>
    &nbsp;&nbsp;&nbsp; }<br>
    <br>
    &nbsp;&nbsp;&nbsp; private ValveBase findValve() {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // TODO: Find valve somehow...<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return null;<br>
    &nbsp;&nbsp;&nbsp; }<br>
    }<br>
    <br>
    <blockquote
cite="mid:CAAUYKa+ywirjJXYoZRTWGQiVYme8GrpSYXZAhi05-Tczhb8tCA@mail.gmail.com"
      type="cite"><br>
      I can see that it has been changed in
      org.apache.catalina.valves.ValveBase since Tomcat API 7.0 which
      already defined a final <b>start()</b> method from its indirect
      parent class org.apache.catalina.util.LifecycleBase<br>
      <a moz-do-not-send="true"
href="http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/ValveBase.html">http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/ValveBase.html</a><br>
      <br>
      I confirmed that the problem doesn't happen in JBoss, so I guess
      this api part is not consistent between Tomcat and JBossWeb.<br>
    </blockquote>
    yes, It sucks that this api is changed...<br>
    <blockquote
cite="mid:CAAUYKa+ywirjJXYoZRTWGQiVYme8GrpSYXZAhi05-Tczhb8tCA@mail.gmail.com"
      type="cite">
      <br>
      In addition, there is no error in compile time as it is using
      tomcat catalina version 6.0.29 declared in gatein-dep.<br>
    </blockquote>
    Hmm... I tried to run "mvn dependency:tree" in module
    component/web/security where PortalClusteredSSOSupportValve
    currently is. And I am seeing that it's using
    jboss.web:jbossweb:jar:2.1.3.GA:provided for compilation.<br>
    <br>
    Marek<br>
    <blockquote
cite="mid:CAAUYKa+ywirjJXYoZRTWGQiVYme8GrpSYXZAhi05-Tczhb8tCA@mail.gmail.com"
      type="cite"><br>
      Thanks,<br>
    </blockquote>
    <br>
  </body>
</html>