I think the best place to start debugging this issue is to look at your
server startup logs. You might find some hints there, as to what flavour of
JSF is your jboss using.

I am also using the same configuration but I wasn't interested in running my
code with the Sun RI. So I removed jboss jsf libraries. Then included all
the myfaces 1.2 libraries in my lib folder. I think you have to specify the war
bundles jsf implementation flag to true in your web.xml.

This was just my experience, your requirements might be different.
On Nov 10, 2007 9:35 PM, Dave <[EMAIL PROTECTED]> wrote:

> Thanks for quick help.
> In my jsf application, I did not define or set  classloader.
> What could be the cause? Thanks!
>
> *Bernhard Huemer <[EMAIL PROTECTED]>* wrote:
>
> Hello,
>
> sounds like a classloader issue as you're still using the JSF RI, at
> least according to the error message ("FacesContext not found" - MyFaces
> vs. "Cannot find FacesContext" - JSF RI; and of course the line numbers
> don't match).
>
> regards,
> Bernhard
>
> On 11/10/2007 +0100,
>  Dave wrote:
> > I upgraded to JBoss 4.2.2 GA from 4.0.5. and followed the following
> > instruction to use MyFaces core instead of the built-in JSF ri.
> > http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces
> >
> > But I got the RuntimeException: can not find FacesContext
> >
> > java.lang.RuntimeException: Cannot find FacesContext
> > at
> > javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(
> UIComponentClassicTagBase.java:1796)
> > at
> > javax.faces.webapp.UIComponentClassicTagBase.setJspId(
> UIComponentClassicTagBase.java:1613)
> > at
> > org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:152)
> > at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:373)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> > 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:379)
> > at
> > org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:292)
> > at
> > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(
> ServletExternalContextImpl.java:419)
> > at
> > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(
> JspViewHandlerImpl.java:211)
> >
> >
> > Thanks for help.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Reply via email to