-
1. Re: ClassCastException when using MyFacesGenericPortlet
theute Sep 3, 2007 9:00 AM (in response to jaboj)MyFacesGenericPortlet doesn't "care" about the version of Portal, it does not rely on JBoss Portal. (It's a generic class for any JSR-168 container)
-
2. Re: ClassCastException when using MyFacesGenericPortlet
jaboj Sep 3, 2007 9:12 AM (in response to jaboj)OK, maybe the MyFacesGenericPortlet doesn't care about the Portal version, but nevertheless we get a ClassCastException when the MyFacesGenericPortlet attempts to get a handle to the FacesContext. The exception occurs in the facesContext method:
protected FacesContext facesContext(PortletRequest request, PortletResponse response) { return facesContextFactory.getFacesContext(portletContext, request, response, lifecycle); }
In Portal 2.6 the facesContextFactory reference references an instance of com.sun.faces.context.FacesContextFactoryImpl and when the getFacesContext method is invoked on this factory object the ClassCastException occur.
In Portal 2.4 the facesContextFactore references an instance of org.apache.myfaces.context.FacesContextFactoryImpl. Is it possible to change the facesContextFactory implementation for our only application? -
3. Re: ClassCastException when using MyFacesGenericPortlet
theute Sep 3, 2007 9:23 AM (in response to jaboj)So i guess you also moved from JBoss AS 4.0.5 to JBoss AS 4.2.1
See: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossFaces if you want to run MyFaces instead of Sun RI. -
4. Re: ClassCastException when using MyFacesGenericPortlet
jaboj Sep 4, 2007 2:52 AM (in response to jaboj)That's correct - we are moving from JBoss AS 4.0.4 to 4.2.1. I have been looking at the wiki and trie to replace the RI JSF implementation with MyFaces but that doesn't seem to work when the Portal is deployet in the AS.
We've also tried to bundle the MyFaces Implementation in our Portal War file, but then we faces a lot of other ClassCastExceptions etc.
Has anyone succeeded to use MyFaces portlets together with Portal 2.6? -
5. Re: ClassCastException when using MyFacesGenericPortlet
claprun Sep 4, 2007 11:12 PM (in response to jaboj)Have you looked at: http://wiki.jboss.org/wiki/Wiki.jsp?page=Running2.6WithJBossAS4.2.xAndMyFaces?
As far as running MyFaces portlets together with Portal 2.6, Portal itself is an example of a success since the administration portlets use a bundled MyFaces to run. -
6. Re: ClassCastException when using MyFacesGenericPortlet
jaboj Sep 5, 2007 3:12 AM (in response to jaboj)Jep, we've looked at the wiki note as well as this note: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces, but when we're following the instructions, we face a lot of other exceptions. As far as I can see, the portal admin part is using MyFaces but it doesn't seem to use MyFacesGenericPortlet - maybe it's only using the gui components.[/url]
-
7. Re: ClassCastException when using MyFacesGenericPortlet
mjcj Nov 26, 2009 1:16 AM (in response to jaboj)---