I suspect that what we're seeing here is one of the
many nasty details of making a JSF 1.2 implementation
support running a JSF 1.1 library.  In this case, Trinidad
has a subclass of FacesContext, but because it's 1.1
based, it can't override getELContext().  Whatever the
default implementation is in MyFaces 1.2, it leads to
this StackOverflow exception.

So, there's a MyFaces 1.2 impl bug here, but it's
not such a big deal for Trinidad users, because the
answer is to just use our 1.2 branch. Or, if you
really have to use Trinidad 1.0.1, you could use
the Sun RI, but it makes more sense to just switch
the Trinidad impl.

-- Adam



On 6/28/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
can you give us the complete stack trace ?

On 6/28/07, noah <[EMAIL PROTECTED]> wrote:
> On 6/28/07, noah <[EMAIL PROTECTED]> wrote:
> > I just switched my 1.1.5 jars for 1.2.0-SNAPSHOT and I'm getting
> >
> > java.lang.StackOverflowError
> >         at java.lang.ThreadLocal.get(ThreadLocal.java:125)
> >         at 
javax.faces.context.FacesContext.getCurrentInstance(FacesContext.java:98)
> >         at 
javax.faces.context.FacesContext.getELContext(FacesContext.java:35)
> >         at 
javax.faces.context.FacesContext.getELContext(FacesContext.java:40)
> >         at 
javax.faces.context.FacesContext.getELContext(FacesContext.java:40)
> >         ... etc.
> >
> > I haven't changed anything else.  I'm also using Facelets 1.1.12,
> > Tomahawk 1.1.5, Sandbox 1.1.6-SNAPSHOT and Trinidad 1.0.1 on Tomcat 6
> > (same error on Jetty too).
> >
> > Is there something I need to change to use the current snapshot?
> >
>
> It looks like switching to Trinidad version 1.2-07-may-SNAPSHOT makes
> that error go away.
>


--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to