Home > Cannot Be > Cannot Be Cast To Javax Portlet Portletrequest

Cannot Be Cast To Javax Portlet Portletrequest

I had deployed the portlet once including the portlet.jar file. For Tomcat, it's found in tomcat/lib/ext/portlet.jarSo that's probably why you're getting the exception. Because of classloader conflict the exception thrown at deploy time as jboss itself has its own portal jars and loaded when started. What is the portlet class mentioned there? Source

see log file for complete stacktrace Caused By: javax.faces.FacesException: #{JSFLoginPortletRequestBean.authenticate}: java.lang.ClassCastException: com.bea.portlet.container.ActionRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) Truncated. Does a key signature go before or after a bar line? Fix: delete the appropriate folder from the webapps directory and redeploy again. –Dick Chesterwood Mar 3 '10 at 15:13 add a comment| Your Answer draft saved draft discarded Sign up Also, if this is not the correct way... http://stackoverflow.com/questions/2366452/deploying-a-simple-portlet-to-liferay-classcastexception

Forum Index -> Development Build Feedback Go to: Select a forum General ------------- Using the Forums ICEfaces Forums ------------- News & Announcements General Help Components Tools JBoss Seam Integration Where in the analytic hierarchy is the theory of true set theory? Defaulting to [UTF-8]. Terms of Service and Use FAQs Search RecentTopics FlaggedTopics HotTopics Best Topics Register / Login Post Reply Bookmark Topic Watch Topic New Topic programming forums Java Java JSRs Mobile Certification Databases

Show 1 reply 1. Add comments to a python script and make it a bilingual python/C++ “program” Add-in salt to injury? asked 6 years ago viewed 5070 times active 6 years ago Get the weekly newsletter! This is the stack trace of my error.

Deryk Sinotte Team Lead ICEsoft Technologies, Inc. Not the answer you're looking for? 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 http://forum.spring.io/forum/spring-projects/container/72472-dispatcherportlet-cannot-be-cast-to-javax-portlet-portlet Can anyone help?

How can I prove its value? Use this code: HttpServletRequest request = null; HttpServletResponse response = null; Object objReq = FacesContext.getCurrentInstance().getExternalContext() .getRequest(); Object objRes = FacesContext.getCurrentInstance().getExternalContext() .getResponse(); if (objReq instanceof HttpServletRequest && objRes instanceof HttpServletResponse) { request Re: JSF sample application in WLP 10.3.2 794460 Aug 30, 2010 8:35 AM (in response to 450722) Hello Venkat, I have removed that tag but still getting errors. Word for "using technology inappropriately"?

Re: JSF sample application in WLP 10.3.2 794460 Aug 29, 2010 9:02 AM (in response to 740689) Hello, Have you copped through the problem. https://vaadin.com/forum#!/thread/507084 Please enter a title. I guess it should work fine then. Do I need to add anything else to the project facets ?

I'm sure it is indeed an extra portlet.jar. this contact form My Jsf portlet has PortletFaces Bridge and mojarra jars.Portlet request class is only found on portlet jars(porlet 2.0 for example which i have not used in my project).But to match the Here is one way, by setting an event to cause a redirect. It was java.lang.NullPointerException java.lang.NullPointerException at com.JSFPortletHelper.isAuthenticated(JSFPortletHelper.java:165) at com.JSFLoginPortletBacking.isAuthenticated(JSFLoginPortletBacking.java:45) at com.JSFLoginPortletBacking.handlePostbackData(JSFLoginPortletBacking.java:22) at com.bea.netuix.servlets.controls.Backable$Impl.handlePostbackData(Backable.java:166) at com.bea.netuix.servlets.controls.AdministeredBackableControl.handlePostbackData(AdministeredBackableControl.java:83) Truncated.

GlassFish) global classpath. Flag Please sign in to flag this as inappropriate. How can I prove its value? http://electrictricycle.net/cannot-be/cannot-be-cast-to-javax-portlet-portlet.html Comment Cancel Post Team Services Tools © Pivotal Software, Inc.

portlet liferay share|improve this question asked Mar 2 '10 at 20:20 Dick Chesterwood 1,38811522 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote accepted javax.portlet.Portlet is See JSF Specification 2.5.2 javax.faces.STATE_SAVING_METHOD server javax.servlet.jsp.jstl.fmt.localizationContext resources.application com.sun.faces.config.ConfigureListener javax.servlet.jsp.jstl.fmt.localizationContext resources.application Resource Servlet /xmlhttp/* Resource Servlet com.icesoft.faces.webapp.CompatResourceServlet 1 Is see log file for complete stacktrace and on the browser I get a stack trace javax.portlet.faces.BridgeException: javax.faces.FacesException: java.lang.ClassCastException: com.bea.portlet.container.RenderRequestImpl cannot be cast to javax.servlet.ServletRequest javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in

So, if doing WLS specific authentication, it will need to be unwrapped.

Are you using JSF1.2 Mojarra? Thanks. In a company crossing multiple timezones, is it rude to send a co-worker a work email in the middle of the night? What is the definition of "rare language"?

You can not post a blank message. I created a jsp with simple form and submit. What do we call initial text of terminal In a company crossing multiple timezones, is it rude to send a co-worker a work email in the middle of the night? Check This Out Mark as an Answer RE: How to get portlet request in jsf2 portlet December 15, 2011 2:20 AM Answer PortletFaces Community Member Rank: Regular Member Posts: 201 Join Date: April 2,

It seems that login is working fine but i get this error when i click Login or Logout Button.