users@glassfish.java.net

using a local faces implementation (myfaces) inside glassfish

From: <glassfish_at_javadesktop.org>
Date: Wed, 18 Jul 2007 08:46:58 PDT

Hi,

I'm having trouble when I bundle my own faces implementation (myfaces) with the webapp.
I get

java.lang.UnsupportedOperationException
        at javax.faces.context.FacesContext.getELContext(FacesContext.java:138)
        at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:896)
        at org.apache.myfaces.application.jsp.JspViewHandlerImpl.createView(JspViewHandlerImpl.java:130)
        at org.ajax4jsf.framework.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:84)
        at org.ajax4jsf.framework.ajax.AjaxViewHandler.createView(AjaxViewHandler.java:84)
        at com.msc.sdm.web.faces.SmViewHandler.createView(SmViewHandler.java:92)

where the line number in FacesContext does not fit FacesContext from myfaces
only has 87 lines total).

My assumption here is it silently pulls in the Glassfish faces implementation instead of
myfaces.

I already specified

<class-loader delegate="false" />

Is there something else I need to to to make it use the bundled myfaces from the
webapp lib directory instead of Glassfish's ?

--
Georg.
[Message sent by forum member 'gwk' (gwk)]
http://forums.java.net/jive/thread.jspa?messageID=227132