Issue Type: Bug Bug
Assignee: Jozef Hartinger
Attachments: WeldPhaseListener.java
Created: 18/Mar/13 12:37 PM
Description:

Hi,

When trying to test a portlet using :

  • JSF 2
  • portlet bridge 3.1.2.Final
  • Weld servlet integration 1.1.11.Final
    configured with the WeldCrossContextFilter, on EAP 5.1.2 with gatein 3.2, everything went well, but when I actually submitted a form, I obtained the following error message :
    java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
    	at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:115)
    	at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:85)
    	at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
    


After a first investigation I managed to fix this by modifying the WeldPhaseListener as attached^WeldPhaseListener.java to support the Portlet context as it was done in WeldApplication.beanManager() method.

Kindest regards

Project: Weld
Priority: Major Major
Reporter: Hamza ben
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to