[weld-issues] [JBoss JIRA] (WELD-510) Support for Portlet 2.0

Adam Michalik (JIRA) jira-events at lists.jboss.org
Fri Apr 20 04:49:20 EDT 2012


    [ https://issues.jboss.org/browse/WELD-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12685963#comment-12685963 ] 

Adam Michalik commented on WELD-510:
------------------------------------

Seems like the filter did not quite solve the problem. With Weld 1.1.7.Final I'm getting

javax.portlet.PortletException: doBridgeDispatch failed:  error from Bridge in executing the request
	at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:675)
	at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:638)
	at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:274)
	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
	at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:245)
	at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
	at org.jboss.weld.servlet.WeldCrossContextFilter.doFilter(WeldCrossContextFilter.java:62)
--- snip ---
Caused by: javax.portlet.faces.BridgeException: java.lang.IllegalStateException: Not in a servlet environment!
	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:89)
	at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:85)
	at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:672)
	... 118 more
Caused by: java.lang.IllegalStateException: Not in a servlet environment!
	at org.jboss.weld.environment.servlet.jsf.WeldApplication.beanManager(WeldApplication.java:103)
	at org.jboss.weld.environment.servlet.jsf.WeldApplication.init(WeldApplication.java:77)
	at org.jboss.weld.environment.servlet.jsf.WeldApplication.delegate(WeldApplication.java:85)
	at org.jboss.weld.environment.servlet.jsf.ForwardingApplication.getViewHandler(ForwardingApplication.java:277)
	at com.sun.faces.context.FacesContextImpl.isPostback(FacesContextImpl.java:210)
	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:184)
	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:83)
	... 120 more

It seems that it's not only my problem: https://community.jboss.org/thread/197833
                
> Support for Portlet 2.0
> -----------------------
>
>                 Key: WELD-510
>                 URL: https://issues.jboss.org/browse/WELD-510
>             Project: Weld
>          Issue Type: Feature Request
>    Affects Versions: 1.0.1.Final
>            Reporter: Neil Griffin
>            Assignee: Marko Strukelj
>            Priority: Blocker
>             Fix For: 1.1.3.Final
>
>
> There are some folks trying to use the PortletFaces Bridge for JSF 2.0 + Portlet 2.0 in Glassfish V3, but Weld is causing an issue.
> Original Post:
> http://www.portletfaces.org/community/forums/-/message_boards/message/43041#_19_message_43038
> Here is a simple stacktrace of the problem:
> Caused by: java.lang.IllegalStateException: Weld doesn not support using JSF in an non-servlet environment
> at org.jboss.weld.jsf.JsfHelper.getModuleBeanManager(JsfHelper.java:119)
> at org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener
> The code for the bridge API is here:
> http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.api/
> The code for the bridge IMPL is here:
> http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.impl/
> And the code for a sample portlet is here:
> http://svn.portletfaces.org/svn/portletfaces/portlets/sample/jsf-2.0-job-application-portlet/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list