Home > Cannot Be > Cannot Be Cast To Javax.portlet.portletsession

Cannot Be Cast To Javax.portlet.portletsession

jwbarnes 06000271DW 3336 Posts Re: Problem migrating struts portlet from WPS 6.0 to WPS 6.1 ‏2008-10-31T01:13:08Z This is the accepted answer. I have a work around which is the following. In Action A1 we do the following to populate ActionFrom F2: ActionForm F2 = new ActionFrom(); F2.setvalues(collections) .... ... Same issue when we set paramaters from the jsp to action class. Source

Sign in Register Home Community Support Users [Resolved] How to get PortletSession form PortalRequestContext Users Using the Product, News and General Questions Post Reply Watch Doctor Who View Public Profile All When I try to install the portlet into liferay, I allways get the following exception and I really dont know why, because according to the documentation, the org.portletfaces.bridge.GenericFacesPortlet shoult implement portlet Anybody? We upgraded RAD to 7.5.4 and are using Portal 6.1, but this is bordering on ridiculous. https://web.liferay.com/community/forums/-/message_boards/message/3240279

The fix pack is APAR PK92740 While installing this fix pack using Portal update installer, you might be asked to install a few more dependent fix packs based on the version We have request.setContextualValue(...). DispatcherPortlet cannot be cast to javax.portlet.Portlet Page Title Module Move Remove Collapse X Conversation Detail Module Collapse Posts Latest Activity Search Forums Page of 1 Filter Time All Time Today Last

Anybody? java jsf-2 portlet classcastexception share|improve this question edited May 30 '12 at 18:59 Mark 25k86286 asked Dec 14 '11 at 9:38 malejpavouk 1,6592033 add a comment| 2 Answers 2 active oldest but this doesn't makes sense of the form being in session. Note: also if we set the form to httpsession instead of portletsession it works 2.

The portlet.jar is in my {glassfish-home}/domain/domain/libThanks for your help.StackTrace:[#|2009-06-03T11:29:13.159+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=e579d575-e141-4382-880a-9d234c05110e;|ApplicationDispatcher[/xxx-web] PWC1231: Servlet.service() for servlet faces threw exceptionjava.lang.ClassCastException: com.liferay.util.servlet.SharedSessionWrapper cannot be cast to javax.portlet.PortletSession at com.sun.faces.portlet.LifecycleImpl.restore(LifecycleImpl.java:376) at com.sun.faces.portlet.LifecycleImpl.execute(LifecycleImpl.java:196) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at Email check failed, please try again Sorry, your blog cannot share posts by email. %d bloggers like this: Share?Profiles ▼Communities ▼Apps ▼ Forums WebSphere Portal Log in to participate Expanded section▼Topic we are still facing this issue and didnt get success. i thought about this jabbar2k 100000VR4N 2 Posts Problem migrating struts portlet from WPS 6.0 to WPS 7.0 in config mode ‏2012-02-06T16:04:58Z This is the accepted answer.

So the attributes are only tied to the user session scope and will be destroyed once the user logs out. Anybody solved it? But i want to change name of the tab Like "Setup" to "Config". manisha garg 270002VJ8Q ‏2010-09-02T12:39:37Z any solution to this thread...

more hot questions question feed lang-java about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation https://developer.jboss.org/thread/81246 This is the accepted answer. All commenting, posting, registration services have been turned off. Comment Cancel Post venosov Senior Member Join Date: May 2011 Posts: 101 #5 Sep 11th, 2011, 02:29 PM Thanks jssemwog, I had the same problem and if you remove the portlet-api.jar

I have followed steps necessary for Struts migration under Link: http://publib.boulder.ibm.com/infocenter/wpdoc/v6r1m0/index.jsp?topic=/com.ibm.wp.ent.doc/migrate/mig_struts.html I have issues with the Struts Action Form set to session. 1. this contact form Would it be possible to send me a simple version of your .war that shows the issue? F2 is set to portletsession (Note: if we set the form to httpsession instead of portletsession it works) Submit action throws null pointer or failed obtain collection since the collection is Thanks, Manisha Log in to reply.

For some background, I am using: Liferay Developer Studio with Tomcat 7 (built-in) IceFaces 3.2.0 JDK version 1.6.0_38 JRE version 1.6.0_38 Windows 7 Enterprise 27/Feb/2013 16:03:01 Subject: Re:ClassCastException when attempting SystemAdmin 110000D4XK ‏2009-02-27T18:50:48Z I am migration from portal 5.1 to 6.1. SystemAdmin 110000D4XK 30895 Posts Re: Problem migrating struts portlet from WPS 6.0 to WPS 6.1 ‏2008-10-30T23:23:16Z This is the accepted answer. http://electrictricycle.net/cannot-be/cannot-be-cast-to-javax-portlet-portlet.html Because of this problem I decided change all my code but ended up wasting lot of time.

I'm having the same issue. SystemAdmin 110000D4XK ‏2009-08-29T16:26:07Z Hi satish i am migrating the strust portlet from 6.0 to 6.1 ... Same Action A1 is forwarded to JSP J2 (Look Up dispatch action).

But I'm hoping I do not have to change all the jsp's we have for the migration.

David O'Meara Rancher Posts: 13459 I like... We followed the info center and also updated the struts jar files from one of the sample apps but this didn't resolve the issue. Regards Rony. But did it resolve your issue?

Browse other questions tagged java jsf-2 portlet classcastexception or ask your own question. Log in to reply. This is the accepted answer. Check This Out Thanks, Manisha More...

Announcement Announcement Module Collapse No announcement yet. jwbarnes 06000271DW ‏2008-10-31T01:13:08Z sorry for not being clearer, under installableApps there are several struts apps you need to get the jars from those and update the jars in your war then I had similar problems while migrating struts portlets from 5.1 to 6.1. posted 5 years ago Portlets use the portlet equivalent to request and response, although it also depends on the phase (action, event, render) Therefore you would use (most likely ) RenderRequest

Can you please guide me ? Praveen_DVS 270002JNHC 1 Post Re: Problem migrating struts portlet from WPS 6.0 to WPS 6.1 ‏2010-09-18T14:35:50Z This is the accepted answer. Search: Go! One portlet has a drop down list.

Travis CoryThe Missing Maven Elements David TruongSo Now what? But did it resolve your issue? SystemAdmin 110000D4XK ‏2008-10-31T04:00:33Z Hi, You can use the struts jars from the any of the war files found in /InstallableApps/ like SPFStandardBlank.war/SPFStandardClock.war you can find the jars inside WEB-INF/lib folder Please Looking at the code that's likely reporting the problem: Code: State state = (State) portletSession.getAttribute(WindowScopeManager.class.getName(), javax.portlet.PortletSession.APPLICATION_SCOPE); I'm not sure why it would have problems storing and retrieving the state from the