jbpm webapp as a portlet
lfaggioli May 2, 2006 12:04 PMHi all!
I'm trying to integrate jBPM into JBoss-Portal, that is, I'm trying to change the jbpm webapp into a portlet.
Has anyone already tried that and succeded?
When I try to reach the first page, I get an error and this is how my server log looks like
2006-05-02 17:28:41,394 DEBUG [org.jbpm.JbpmContext] creating JbpmContext 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] request null 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] session parameter [javax.portlet.p.ETTSInst?org.apache.myfaces.portlet.PortletUtil.PORTLET_REQUEST_FLAG]=true 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] session parameter [userBean]=org.jbpm.webapp.bean.UserBean@156ff4d 2006-05-02 17:28:41,394 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]' 2006-05-02 17:28:41,394 DEBUG [org.jbpm.JbpmContext] creating JbpmContext 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] request null 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] session parameter [javax.portlet.p.ETTSInst?org.apache.myfaces.portlet.PortletUtil.PORTLET_REQUEST_FLAG]=true 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] session parameter [userBean]=org.jbpm.webapp.bean.UserBean@931d05 2006-05-02 17:28:41,394 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]' 2006-05-02 17:28:41,394 DEBUG [org.jbpm.JbpmContext] creating JbpmContext 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] request null 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] session parameter [javax.portlet.p.ETTSInst?org.apache.myfaces.portlet.PortletUtil.PORTLET_REQUEST_FLAG]=true 2006-05-02 17:28:41,394 DEBUG [org.jbpm.webapp.filter.LogFilter] session parameter [userBean]=org.jbpm.webapp.bean.UserBean@564b26 2006-05-02 17:28:41,394 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]' ...
several times, and then, again, several times:
... 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@593848 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@17e20ff 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@1a87e88 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@10b3465 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@9ce1c8 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@1ab37bd 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,891 DEBUG [org.jbpm.JbpmContext] closing JbpmContext 2006-05-02 17:28:52,891 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@1d85a26 2006-05-02 17:28:52,891 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpmportlet].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.StackOverflowError 2006-05-02 17:28:52,901 ERROR [org.apache.myfaces.portlet.MyFacesGenericPortlet] The portlet threw an exception javax.faces.FacesException: javax.servlet.ServletException at org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:171) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:195) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323) at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298) at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380) at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167) at javax.portlet.GenericPortlet.render(GenericPortlet.java:407) ...
this is how my portlet.xml looks like:
<?xml version="1.0" encoding="UTF-8"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"> <portlet> <description>ETTS Portlet</description> <portlet-name>ETTSPortlet</portlet-name> <display-name>ETTS Portlet</display-name> <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class> <init-param> <description>Portlet init page</description> <name>default-view</name> <value>/login.jsp</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> <!-- <portlet-mode>EDIT</portlet-mode> <portlet-mode>HELP</portlet-mode> --> </supports> <portlet-info> <title>ETTS Portlet</title> </portlet-info> </portlet> </portlet-app>
Any idea?
Thanks
luca