Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Icesoft by rafaljaw, 1 year ago
com.liferay.portlet.PortletContextImpl cannot be cast to javax.servlet.ServletContext
via Icesoft by marc_nikko, 7 months ago
com.liferay.portlet.PortletContextImpl
java.lang.ClassCastException: com.liferay.portlet.PortletContextImpl cannot be cast to javax.servlet.ServletContext	at com.icesoft.faces.component.outputchart.OutputChart.getPath(OutputChart.java:440)	at com.icesoft.faces.component.outputchart.OutputChart.getFolder(OutputChart.java:526)	at com.icesoft.faces.component.outputchart.OutputChartRenderer.encodeBegin(OutputChartRenderer.java:79)	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785)	at com.icesoft.faces.component.outputchart.OutputChart.encodeBegin(OutputChart.java:382)	at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:340)	at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)	at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:342)	at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)	at com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339)	at com.icesoft.faces.component.paneltabset.PanelTabSetRenderer.writeTabCell(PanelTabSetRenderer.java:909)	at com.icesoft.faces.component.paneltabset.PanelTabSetRenderer.encodeEnd(PanelTabSetRenderer.java:410)	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)	at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:570)	at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)	at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)	at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:541)	at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCyclePartial(ReceiveSendUpdates.java:69)	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:43)	at com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25)	at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:52)	at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)	at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)	at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)	at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)	at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:109)	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)	at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)	at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)	at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:98)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:343)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)	at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)	at java.lang.Thread.run(Thread.java:619)