Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

goddam JSF javax.faces.FacesException must be embedded in an form

Thread view: 
timasmith@hotmail.com - 16 Aug 2006 02:57 GMT
This is impossible.  One false move and I'm out.

After downloading some jars for a myface tree I seem to have ****** my
environment and now get a crappy message:

javax.faces.FacesException must be embedded in an form

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Component _idJsp0:0:_idJsp3 must be
embedded in an form
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

root cause

javax.faces.FacesException: Component _idJsp0:0:_idJsp3 must be
embedded in an form
    org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:435)
    org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
    org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.
Andrea Desole - 16 Aug 2006 10:02 GMT
> This is impossible.  One false move and I'm out.
>
[quoted text clipped - 16 lines]
>     javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
>     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

the error message looks clear: you have to put a component in a form. If
you look at the generated html, or the compiled servlet, you should be
able to know what the component is.
Also, I see you are using JBoss, with a version of MyFaces you
downloaded yourself. You shouldn't have the problems I had, because I
was using Sun's implementation, but a conflict is always to consider.
If you really think you have no options, try to remove ths jsf-libs
directory as described here:

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces
timasmith@hotmail.com - 16 Aug 2006 10:53 GMT
I dont know it was bizarre.  I would opt to say I had some
compatability problem.  I blew away JBoss, all my jars in WEB-INF/lib
and started again and without changing code it was fine.

> > This is impossible.  One false move and I'm out.
> >
[quoted text clipped - 27 lines]
>
> http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.