3 Replies Latest reply on Nov 29, 2009 9:51 PM by Robert Freund

    Install jbossweb 2.1.x in JBoss-4.2.3 to use Comet ?

    Joan Bordeau Newbie

      Hello,

      In reading few documentations, Wiki, Jira and forums, I understand that Comet is available from jbossweb 2.1.0. But jboss-4.2.3 contains jbossweb-2.0.x. So my questions is to know if I can install jbossweb-2.1.X in JBoss-4.2.3.

      Usually, Id like use RestEasy (which may work in JBoss-4.2.3 to process async http). But I get an error : ClassCastException on ReplyHeaderFilter.

      Thanks.

        • 1. Re: Install jbossweb 2.1.x in JBoss-4.2.3 to use Comet ?
          Joan Bordeau Newbie

          According to this post :
          http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4106554#4106554

          I cannot install jbossweb-2.1 in JBoss-4.2.3.

          In fact, in this documentation, I should be able to use Comet with JBoss-4.2.3 :
          http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4106554#4106554

          However, I installed APR (that works, but the APR boot is very slow) and I obtain this error when I perform a Rest test:


          java.lang.ClassCastException: org.jboss.web.tomcat.filters.ReplyHeaderFilter
          org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
          org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
          org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
          org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
          org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
          java.lang.Thread.run(Thread.java:595)


          I doubt that Comet with RestEasy works with JBoss-4.2.3.

          If anyone has succeeded ?

          Regards.

          • 2. Re: Install jbossweb 2.1.x in JBoss-4.2.3 to use Comet ?
            Aleš Bregar Newbie

            Hi,


            I am interested on the topic too (one app is discussed that would greatly benefit from comet's added functionality but upgrading to AS 5.x is not an option in short term).

            So, were you successful at integrating jbossweb 2.1.x to jboss 4.2.x at the end? Or did you find it impossible to do that?

            Or if I might ask - somebody else has en experience on that to share?

            tnx in advance & brg,
            K

            • 3. Re: Install jbossweb 2.1.x in JBoss-4.2.3 to use Comet ?
              Robert Freund Newbie

              Not particular to RestEasy but you may want to try commenting out this seciton in your \jboss\server\default\deploy\jboss-web.deployer\conf\web.xml file to make it work.
              //around line 35

              <filter-name>CommonHeadersFilter</filter-name>
              <filter-class>org.jboss.web.tomcat.filters.ReplyHeaderFilter</filter-class>
              <init-param>
              <param-name>X-Powered-By</param-name>
              <param-value>Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)/JBossWeb-2.0</param-value>
              </init-param>


              <filter-mapping>
              <filter-name>CommonHeadersFilter</filter-name>
              <url-pattern>/*</url-pattern>
              </filter-mapping>


              I use different async setups and it does work on 4.2.3 if you comment this out.

              Hope it helps!