[JBoss Portal] - LayoutStrategy HttpSession and PortletSession with APPLICATI
by klj62
We are currently using the JBoss Portal 2.2.1SP3 Bundle and are attempting to set a session attribute in a portlet for access by a layout strategy, which has access to the HttpSession.
Yes, we've read the spec and are using APPLICATION_SCOPE. Both the layout strategy class and the portlet class are deployed in the same web app. The Portlet code is:
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
| throws PortletException
| {
| PortletSession ps = actionRequest.getPortletSession();
| ps.setAttribute( "portletAction", "MyPortletInfo", PortletSession.APPLICATION_SCOPE );
| }
|
Then the Strategy code called immediately after is:
public StrategyResponse evaluate(StrategyContext context)
| throws StrategyException
| {
| HttpServletRequest request = context.getHttpServletRequest();
| HttpSession session = request.getSession();
|
| String portletAction = (String)session.getAttribute("portletAction");
| . . . .
| }
|
The attribute is not found. We've printed all attributes available from the HttpSession, and the "portletAction" set in the PortletSession is not found, regardless of the scope used.
Are there any versions of Jboss/Tomcat that do not properly propagate PortletSession attributes to the HttpSession? Is the Strategy called by some external HttpSession to the one used by the portlets? Are there configuration parameters that do not default to work according to the JSR168 spec?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000573#4000573
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000573
19 years, 3 months
[JBoss jBPM] - Re: How to create a Timer on a task-node?
by dasriharsha
Yes the timer is getting created in JBPM_TIMER table. But the handler is not getting executed. Iam throwing back the exception that is caught in the handler. So i see the following exception in the JBPM_TIMER table.
java.lang.Exception: Exception in the VideoTranscodeMonitorHandler org.jbpm.bytes.ByteArray$$EnhancerByCGLIB$$afee7672
| at com.ge.nbc.content.process.video.handler.VideoTranscodeMonitorHandler.execute(VideoTranscodeMonitorHandler.java:55)
| at org.jbpm.graph.def.Action.execute(Action.java:123)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:185)
| at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$9c43d20f.execute(<generated>)
| at org.jbpm.scheduler.exe.Timer.execute(Timer.java:84)
| at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:118)
| at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
|
How do i make sure that the Scheduler is running. Looking at the error trace i think its running.
Is there anything that iam missing.
Regards
Harsha
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000568#4000568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000568
19 years, 3 months
[JBoss Portal] - java.lang.ClassCastException: com.sun.facelets.component.Rep
by NewTo23
Hi,
I have a JSF application using JSF 1.1_02 version. I am trying to deploy it as a war (as per JSR-168 spec) in the JBoss portal server 2.4.1
I am getting the following error while deploying,
2007-01-11 11:58:55,621 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/adjahjportlet]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.ClassCastException: com.sun.facelets.component.RepeatRenderer
I have the following jars included in the lib folder,
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
jsf-portlet.jar
My portlet.xml file is,
<portlet-name>TestPortlet</portlet-name>
<portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
....
Please let me know how to resolve this issue.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000567#4000567
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000567
19 years, 3 months