[jboss-user] [JBoss Seam] - problem while using SEAM tag <s:link> in a JSF Portlet

jpbarbe do-not-reply at jboss.com
Thu Nov 30 12:48:11 EST 2006


Hi,
I've got the following exception when I use a the SEAM tag <s:link> from a JSF Portlet:

[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-desk]] No active conversation context
  | java.lang.IllegalStateException: No active conversation context
  | 	at org.jboss.seam.core.Process.instance(Process.java:32)
  | 	at org.jboss.seam.core.TaskInstance.instance(TaskInstance.java:51)
  | 	at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(BusinessProcessContext.java:213)
  | 	at org.jboss.seam.contexts.BusinessProcessContext.get(BusinessProcessContext.java:51)
  | 	at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:155)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1245)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1230)
  | 	at org.jboss.seam.contexts.Lifecycle.resumeConversation(Lifecycle.java:328)
  | 	at org.jboss.seam.jsf.AbstractSeamPhaseListener.restoreAnyConversationContext(AbstractSeamPhaseListener.java:42)
  | 	at org.jboss.seam.jsf.SeamPortletPhaseListener.beforePhase(SeamPortletPhaseListener.java:51)
  | 	at org.jboss.seam.jsf.SeamExtendedManagedPersistencePortletPhaseListener.beforePhase(SeamExtendedManagedPersistencePortletPhaseListener.java:37)
  | 	at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
  | 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
  | 	at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:396)
  | 	at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
  | 	at com.eads.desk.core.portlet.DeskAccessPortlet.doView(DeskAccessPortlet.java:30)
  | 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
  | 

Here is the web.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | <web-app version="2.4"
  |          xmlns="http://java.sun.com/xml/ns/j2ee"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  |     <!-- Seam -->
  |     <listener>
  |        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  | </web-app>

And the faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE faces-config 
  |     PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  |     "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
  | 
  | <faces-config>
  | 
  | 	<lifecycle>
  | 		<phase-listener>
  | 			org.jboss.seam.jsf.SeamExtendedManagedPersistencePortletPhaseListener
  | 		</phase-listener>
  | 	</lifecycle>
  | 	
  | 	
  | 	<navigation-rule>
  | 		<from-view-id>/view/deskAccess.jsp</from-view-id>
  | 		<navigation-case>
  | 			<from-outcome>trManager</from-outcome>
  | 			<to-view-id>/view/viewTRManager.jsp</to-view-id>
  | 			<redirect />
  | 		</navigation-case>	
  | 	</navigation-rule>
  |     
  |     <navigation-rule>
  |     	<navigation-case>
  |     		<from-action>#{pooledTask.assignToCurrentActor}</from-action>
  |     		<from-outcome>taskAssignedToActor</from-outcome>
  |     		<to-view-id>/view/viewTRManager.jsp</to-view-id>
  |     	</navigation-case>
  |     </navigation-rule>
  | 	
  | </faces-config>
  | 

Thanks for your help...
JP

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990162#3990162

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990162



More information about the jboss-user mailing list