Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ralf Heydenreich
ContextNotActiveException while jumping to another page
January 29, 2013 6:44 AM
Answer

Ralf Heydenreich

Rank: New Member

Posts: 11

Join Date: November 9, 2009

Recent Posts

Hi all,
I'm using the following configuration:
  • Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January 6, 2012)
  • PrimeFaces 3.4.2
  • JBoss AS 7.1.1.Final "Brontes"


Now I have an XHTML file with a little commandButton inside:

1
2<h:form><p:panel>
3<h:commandLink action="#{taskSelector.selectTask(1)}" value="check it!" />
4</p:panel>
5</h:form>


The taskSelector is a managed backing bean. The method selectTask(1) returns a valid action (the string "other-page" in this case). After clicking on this link I get a scary lengthy exception:

  1
  215:15:53,229 Schwerwiegend [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-1) Error Rendering View[/pages/user-editlist.xhtml]: javax.enterprise.context.ContextNotActiveException: Conversation Context not active when method called on conversation Transient conversation
  3    at org.jboss.weld.context.conversation.ConversationImpl.verifyConversationContextActive(ConversationImpl.java:197) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
  4    at org.jboss.weld.context.conversation.ConversationImpl.isTransient(ConversationImpl.java:149) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
  5    at org.jboss.weld.jsf.ConversationAwareViewHandler.getActionURL(ConversationAwareViewHandler.java:102) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
  6    at com.sun.faces.renderkit.html_basic.FormRenderer.getActionStr(FormRenderer.java:232) [jsf-impl-2.1.7-jbossorg-2.jar:]
  7    at com.sun.faces.renderkit.html_basic.FormRenderer.encodeBegin(FormRenderer.java:135) [jsf-impl-2.1.7-jbossorg-2.jar:]
  8    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
  9    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) [jsf-impl-2.1.7-jbossorg-2.jar:]
 10    at com.sun.faces.renderkit.html_basic.GridRenderer.renderFooter(GridRenderer.java:242) [jsf-impl-2.1.7-jbossorg-2.jar:]
 11    at com.sun.faces.renderkit.html_basic.GridRenderer.encodeBegin(GridRenderer.java:88) [jsf-impl-2.1.7-jbossorg-2.jar:]
 12    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 13    at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:53) [primefaces-3.4.2.jar:]
 14    at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:44) [primefaces-3.4.2.jar:]
 15    at org.primefaces.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:207) [primefaces-3.4.2.jar:]
 16    at org.primefaces.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:124) [primefaces-3.4.2.jar:]
 17    at org.primefaces.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:55) [primefaces-3.4.2.jar:]
 18    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 19    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 20    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 21    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 22    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.7-jbossorg-2.jar:]
 23    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.7-jbossorg-2.jar:]
 24    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 25    at com.liferay.faces.bridge.application.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:35) [liferay-faces-bridge-impl-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 26    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
 27    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:]
 28    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]
 29    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:]
 30    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45) [liferay-faces-bridge-impl-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 31    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:227) [liferay-faces-bridge-impl-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 32    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85) [liferay-faces-bridge-impl-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 33    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:112) [liferay-faces-bridge-impl-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 34    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255) [liferay-faces-bridge-api-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 35    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328) [portlet.jar:]
 36    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204) [liferay-faces-bridge-api-3.1.1-ga2.jar:3.1.1-ga2 (Galatia / Dec 1, 2012 AD)]
 37    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) [portlet.jar:]
 38    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 39    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64) [portal-service.jar:]
 40    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93) [portal-service.jar:]
 41    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 42    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
 43    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
 44    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
 45    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70) [portal-service.jar:]
 46    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
 47    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
 48    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
 49    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]
 50    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]
 51    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
 52    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:722)
 53    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:426)
 54    at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1185)
 55    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]
 56    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 57    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]
 58    at org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]
 59    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java) [jbossweb-7.0.13.Final.jar:]
 60    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]
 61    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 62    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
 63    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
 64    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
 65    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70) [portal-service.jar:]
 66    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
 67    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
 68    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
 69    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]
 70    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]
 71    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4735)
 72    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1455) [portal-service.jar:]
 73    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:213)
 74    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:148)
 75    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:309)
 76    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:234)
 77    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:106) [portal-service.jar:]
 78    at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:482)
 79    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]
 80    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 81    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]
 82    at org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]
 83    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java) [jbossweb-7.0.13.Final.jar:]
 84    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]
 85    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 86    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
 87    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
 88    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
 89    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70) [portal-service.jar:]
 90    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
 91    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
 92    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
 93    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]
 94    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]
 95    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:412)
 96    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:680)
 97    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
 98    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 99    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
100    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
101    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
102    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
103    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
104    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
105    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
106    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
107    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
108    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
109    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
110    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113) [portal-service.jar:]
111    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113) [portal-service.jar:]
112    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
113    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
114    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
115    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
117    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
118    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
119    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
120    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
121    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
122    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70) [portal-service.jar:]
123    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
124    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
125    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
126    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.13.Final.jar:]
127    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.13.Final.jar:]
128    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.13.Final.jar:]
129    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
130    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
131    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
132    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
133    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
134    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
135    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
136    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
137    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
138    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
139    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
140    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
141    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
142    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
143    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
144    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
145    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
146    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
147    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
148    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
149    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
150    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
151    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
153    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
154    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113) [portal-service.jar:]
155    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
156    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
157    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
158    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
159    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
160    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
161    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
162    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
163    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
164    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
165    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
166    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
167    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
168    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
169    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
170    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
171    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
172    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
173    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
174    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
175    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121) [portal-service.jar:]
176    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)
177    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48) [portal-service.jar:]
178    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
179    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
180    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184) [portal-service.jar:]
181    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92) [portal-service.jar:]
182    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
183    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203) [portal-service.jar:]
184    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105) [portal-service.jar:]
185    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164) [portal-service.jar:]
186    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92) [portal-service.jar:]
187    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164) [portal-service.jar:]
188    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92) [portal-service.jar:]
189    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184) [portal-service.jar:]
190    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92) [portal-service.jar:]
191    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70) [portal-service.jar:]
192    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
193    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
194    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
195    at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
196    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) [jbossweb-7.0.13.Final.jar:]
197    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]
198    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
199    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
200    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
201    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
202    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
203    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
204    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
205    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
206    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
207    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]


Could anybody explain me what's wrong with my code? Does the exception relate to this FACES-1211 issue?

TIA,

Ralf.
Neil Griffin
RE: ContextNotActiveException while jumping to another page
January 29, 2013 7:47 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2178

Join Date: July 26, 2005

Recent Posts

Yes, it is likely related to the FACES-1211 issue. Do you have a WEB-INF/beans.xml descriptor in your portlet?
Ralf Heydenreich
RE: ContextNotActiveException while jumping to another page
January 29, 2013 8:16 AM
Answer

Ralf Heydenreich

Rank: New Member

Posts: 11

Join Date: November 9, 2009

Recent Posts

No, I don't have a beans.xml. But I can't imagine that a simple button or link is not possible with JSF?! emoticon In the liferay JSF portlet example I didn't find any hint...

Regards,
Ralf.
Neil Griffin
RE: ContextNotActiveException while jumping to another page
January 29, 2013 8:26 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2178

Join Date: July 26, 2005

Recent Posts

First, let me say that JBoss has made good progress towards getting CDI to work in a portlet environment. We will be testing the JBoss code soon.

Second, a simple button/link is definitely possible. CDI is just putting itself in the middle for some reason. What dependencies (JARs) do you have in WEB-INF/lib? Perhaps one of them has a META-INF/beans.xml descriptor inside of them.
Ralf Heydenreich
RE: ContextNotActiveException while jumping to another page
January 30, 2013 12:50 AM
Answer

Ralf Heydenreich

Rank: New Member

Posts: 11

Join Date: November 9, 2009

Recent Posts

Incredible. I've searched through all the jars inside my WAR file and found a beans.xml. After removing it the error disappeared. Many thanks for your help!

Regards, Ralf.
Neil Griffin
RE: ContextNotActiveException while jumping to another page
January 30, 2013 7:48 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2178

Join Date: July 26, 2005

Recent Posts

Hi Ralf,

My pleasure -- glad I could help. Just curious, was it a JAR from a public open source project? Or was it a JAR developed by your organization? If it was from a public open source project, I would be interested to know which one.

Thanks,

Neil
Ralf Heydenreich
RE: ContextNotActiveException while jumping to another page
January 31, 2013 1:00 PM
Answer

Ralf Heydenreich

Rank: New Member

Posts: 11

Join Date: November 9, 2009

Recent Posts

The mentioned JAR file was from my organization. The other libs I've used didn't contain a beans.xml.

Regards,
Ralf.
Neil Griffin
RE: ContextNotActiveException while jumping to another page
January 31, 2013 1:22 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2178

Join Date: July 26, 2005

Recent Posts

OK thanks.