VwpFAQFragErr

Why do I get com.sun.rave.web.ui.appbase.ApplicationException when including page fragments?

When I try to include a .jsp page I get the following error:

com.sun.rave.web.ui.appbase.ApplicationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Assertion Failed
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

How do I fix this?

This error occurs when you try to include the entire jsp page. Page fragments should not contain view, body, or head tags. If they do, you end up with invalid HTML when everything is combined together resulting in the above error.

Page Fragments should only contain the page content.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo