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

Cannot Be Cast To Javax.portlet.portlet

All Rights Reserved. Red HatSite Help:FAQReport a problem Home Forum Spring Projects Container This forum is now a read-only archive. Re: cannot be cast to javax.portlet.Portlet Saravanamoorthi Karuppagounder Nov 3, 2009 12:21 PM (in response to Saravanamoorthi Karuppagounder) Figured out that including the portal core jar files in the web archive(war) eXo Platform SAS Sign In Create Account Search among 980,000 solutions Search Your bugs help others We want to create amazing apps without being stopped by crashes. Source

Take a tour to get the most out of Samebug. Sign in Register Home Community Support Developers [Resolved] When I deploying portlet following error exist.what is the solution for that. Isthereanyextraconfigurationtoenablethisscenariotowork? []s DanielGazineu --------------------------------------------------------------------- Tounsubscribe,e-mail:[email protected] Currently I am working with IceFaces, but I am frequently running into issues with deploying my portlets. http://stackoverflow.com/questions/2366452/deploying-a-simple-portlet-to-liferay-classcastexception

The class is loaded twice, in two different class loaders and are by consequence considered different. asked 6 years ago viewed 5070 times active 6 years ago Get the weekly newsletter! It was duplicate but problem was your dependency portlet 2.0 that didn't declare scope is provided, therefore it conflicted to portlet api of gatein. Teenage daughter refusing to go to school Is adding the ‘tbl’ prefix to table names really a problem?

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 Because of classloader conflict the exception thrown at deploy time as jboss itself has its own portal jars and loaded when started. I saw 2 dependencies in your pom.xml were portlet 1.0 & portlet 2.0. Making a large file using the terminal more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology

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 If you are sure you don't have portlet.jar in your WAR archive you can turn on verbose classloading and watch where is the javax.portlet.Portlet loaded from. Flag Please sign in to flag this as inappropriate. If you agree to our use of cookies, please close this message and continue to use this site.

Browse other questions tagged portlet liferay or ask your own question. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Cc: [email protected] Can one bake a cake with a cooked egg instead of a raw one?

Probability of All Combinations of Given Events Singular cohomology and birational equivalence Where in the analytic hierarchy is the theory of true set theory? https://vaadin.com/forum/#!/thread/874670/874669 n-dimensional circles! Flag Please sign in to flag this as inappropriate. Can anyone help?

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 this contact form One portlet has a drop down list. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms Why do some airlines have different flight numbers for IATA and ICAO?

Show 1 reply 1. To turn you verbose classloading pass following parameter to the JVM: -verbose:class share|improve this answer answered Mar 2 '10 at 22:53 Jaromir Hamala 1,540912 1 Ouch. Which movie series are referenced in XKCD comic 1568? have a peek here javax.portlet.Portlet is implemented by GenericPortlet, and all Portlet examples seem to extend GenericPortlet so I assume that's ok.

share|improve this answer answered Mar 2 '10 at 20:31 ewernli 28.6k256101 Excellent, thanks - I have to leave now but I'll check this as soon as I can. can't someone please help me?? Forum Index -> Portals & Portlets Go to: Select a forum General ------------- Using the Forums ICEfaces Forums ------------- News & Announcements General Help Components Tools JBoss Seam Integration

I'mtryingtorunasimpleJSF-Portletapplicationwithmergesthese twotutorials: https://jsfportletbridge.dev.java.net/DeployingJSFPortlet.html http://www.ibm.com/developerworks/library/j-jsf1 ButI'mhavingthefollowingexceptionatloadingtime: java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacadecannotbecastto javax.portlet.PortletContext at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64) atjavax.faces.webapp.FacesServlet.service(FacesServlet.java:239) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:850) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:568) at com.sun.portal.portletcontainer.portlet.impl.RequestDispatcherImpl.include(RequestDispatcherImpl.java:109) at com.sun.faces.portlet.ExternalContextImpl.dispatch(ExternalContextImpl.java:136) at com.sun.faces.portlet.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:351) at com.sun.faces.portlet.ViewHandlerImpl.renderView(ViewHandlerImpl.java:229) at com.sun.faces.portlet.LifecycleImpl$RenderResponsePhase.execute(LifecycleImpl.java:680)

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 Sign in to vote. Not the answer you're looking for? This site uses cookies, as explained in our cookie policy.

Linked 0 Classloader conflict on portlet.jar Related 14Accessing the user from a liferay portlet?11How to deploy portlets to Liferay0Liferay: Can't see the deployed portlet0Liferay - simple portlet issue4Deploying a JSR 286 Subject: Re: org.apache.catalina.core.ApplicationContextFacade cannot be cast to javax.portlet.PortletContext Date: Thu, 24 May 2007 18:58:52 +0530 Mailing-list: contact [email protected]; run by ezmlm HiDaniel, Looks like you are using index.jsp as the INIT_VIEW, I tried your suggestion, and put them in same WAR to see if that made a difference, but I got the same result. 27/Feb/2013 20:12:57 Subject: Re:ClassCastException when attempting to Check This Out Same procedure I used to create a hook in startup service event in which I created custom attributes by using hook.

I have already extend javax.portlet.GenericPortlet. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, Then I realized my mistake and removed it from all future deployments.