Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3544

eap645ga / weld 1.1.31 / rewritevalve exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 6.4.0.GA
    • CDI / Weld, Web (JBoss Web)
    • None
    • Hide

      JBoss EAP 6.4.5.GA on OpenShift (includes weld 1.1.31)

      create org.jboss.web.rewrite.RewriteValve file in /WEB-INF/rewrite.properties

      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/rewrite.properties

      reference rewrite filter in /WEB-INF/jboss-web.xml

      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/jboss-web.xml

      beans.xml file to ensure weld is started

      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/beans.xml

      add a second version of index.html,rewrite.html (new title)

      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/rewrite.html

      invoke standard application URL via http:
      http://eap645ga-ams10961.rhcloud.com

      302 redirect and rule rewrite to https and new page (rewrite.html)
      https://eap645ga-ams10961.rhcloud.com/

      exception shown in log

      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/logs/jbosseap-openshift.log

      2016/02/22 22:37:02,923 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]] (http-/127.4.226.129:8080-1) JBWEB000238: Exception sending request destroyed lifecycle event to listener instance of class org.jboss.weld.servlet.WeldListener: java.lang.IllegalStateException: JBWEB000057: The request object has been recycled and is no longer associated with this facade
      at org.apache.catalina.connector.RequestFacade.removeAttribute(RequestFacade.java:494) [jbossweb.jar:7.5.12.Final-redhat-1]
      at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:133)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) [jbossweb.jar:7.5.12.Final-redhat-1]

      Show
      JBoss EAP 6.4.5.GA on OpenShift (includes weld 1.1.31) create org.jboss.web.rewrite.RewriteValve file in /WEB-INF/rewrite.properties https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/rewrite.properties reference rewrite filter in /WEB-INF/jboss-web.xml https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/jboss-web.xml beans.xml file to ensure weld is started https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/beans.xml add a second version of index.html,rewrite.html (new title) https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/rewrite.html invoke standard application URL via http: http://eap645ga-ams10961.rhcloud.com 302 redirect and rule rewrite to https and new page (rewrite.html) https://eap645ga-ams10961.rhcloud.com/ exception shown in log https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/logs/jbosseap-openshift.log 2016/02/22 22:37:02,923 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web] . [default-host] ] (http-/127.4.226.129:8080-1) JBWEB000238: Exception sending request destroyed lifecycle event to listener instance of class org.jboss.weld.servlet.WeldListener: java.lang.IllegalStateException: JBWEB000057: The request object has been recycled and is no longer associated with this facade at org.apache.catalina.connector.RequestFacade.removeAttribute(RequestFacade.java:494) [jbossweb.jar:7.5.12.Final-redhat-1] at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:133) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) [jbossweb.jar:7.5.12.Final-redhat-1]

      Versions
      INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.5.GA (AS 7.5.5.Final-redhat-3)
      INFO [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900 1.1.31 (redhat)

      org.jboss.web.rewrite.RewriteValve
      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/src/main/webapp/WEB-INF/rewrite.properties

      call to: http://eap645ga-ams10961.rhcloud.com
      redirected to: https://eap645ga-ams10961.rhcloud.com (rewrite.html)

      Invocation of URL using RewriteRule succeeds, but causes weld exception
      https://github.com/ams10961/eap645ga-weld1131-rewrite/blob/master/logs/jbosseap-openshift.log

      2016/02/22 22:37:02,923 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]] (http-/127.4.226.129:8080-1) JBWEB000238: Exception sending request destroyed lifecycle event to listener instance of class org.jboss.weld.servlet.WeldListener: java.lang.IllegalStateException: JBWEB000057: The request object has been recycled and is no longer associated with this facade
      at org.apache.catalina.connector.RequestFacade.removeAttribute(RequestFacade.java:494) [jbossweb.jar:7.5.12.Final-redhat-1]
      at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:133)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) [jbossweb.jar:7.5.12.Final-redhat-1]

              rpelisse@redhat.com Romain Pelisse
              ams10961_jira andrew simpson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified