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

T

timasmith

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.
 
A

Andrea Desole

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)

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
 
T

timasmith

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top