ClassCastException while trying to access ServletContext
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ClassCastException while trying to access ServletContext  XML
Forum Index -> Portals & Portlets
Author Message
Infomatrixx

Joined: 15/07/2010 05:55:16
Messages: 1
Offline


Hi,

I am trying to integrate IBM ILog in combination with ICEfaces into my Liferay Portal. Before I tried to use ILog and ICEfaces as standalone application and it worked nice.

But if I add the portlet specification to my application it doesn't work anymore. Firebug shows me the following ClassCast Exception while trying to receive the ILog servlet for rendering the chart.


Code:
 java.lang.ClassCastException: com.liferay.portlet.PortletContextImpl cannot be cast to javax.servlet.ServletContext
 	com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:108)
 	com.icesoft.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:89)
 	ilog.views.faces.internalutil.IlvFacesContextFactory.createFacesContext(Unknown Source)
 	ilog.views.faces.internalutil.IlvFacesContextFactory.getFacesContext(Unknown Source)
 	ilog.views.gantt.faces.dhtml.servlet.IlvFacesGanttServletSupport.getFacesContext(Unknown Source)
 	ilog.views.gantt.faces.dhtml.servlet.IlvFacesGanttServletSupport.handleRequest(Unknown Source)
 	ilog.views.gantt.servlet.IlvGanttServlet.doGet(Unknown Source)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 	ilog.views.faces.IlvFacesController.service(Unknown Source)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 


Any hints ?

best regards

Fabian
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team