[Tomcat, HTTPD, Servlets & JSP] - Re: ADF Problem with JBoss
by JPagera
First : thankx for ur reply
Second : i did what u told me to ..
but i got another exception that is :
.....................................................
javax.servlet.ServletException: Cannot find FacesContext
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.userLogin_jsp._jspService(userLogin_jsp.java:97)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
root cause
javax.servlet.jsp.JspException: Cannot find FacesContext
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405)
com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
org.apache.jsp.userLogin_jsp._jspx_meth_f_view_0(userLogin_jsp.java:112)
org.apache.jsp.userLogin_jsp._jspService(userLogin_jsp.java:87)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
...............................
and about adding the JSF implementation in my WAR ( im not that beginer to forget this issue ??????????? ).....
my project is working perfectly in OC4J
this is the first time im using JBoss ..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043747#4043747
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043747
19 years
[JBoss Seam] - Error reporting
by MikeDougherty
I'm having a bit of trouble figuring out how error reporting is suppose to work. I have an exceptions.xml file to catch exceptions.
| <exception class="java.lang.RuntimeException">
| <redirect view-id="/fatalError.xhtml">
| <message>Unexpected error, please try again</message>
| <endConversation />
| </redirect>
| </exception>
| <exception>
| <redirect view-id="/fatalError.xhtml">
| <message>Unexpected error, please try again</message>
| <endConversation />
| </redirect>
| </exception>
|
Which seems to work if the Exception is thrown early enough in the page rendering process. However, it does not always seem to catch the exceptions. The best I can figure is that it doesn't work when the page is rendered partially, and then an Exception is encountered. The makes sense because once an HttpServletResponse has been committed you can't then decide to redirect.
I need to find a way to configure Seam (or maybe it's JSF) when it reports Errors and/or Exceptions. The default, which includes StackTrace, Component Tree, Scoped Variables, etc, is fine while in development. But once the application goes to production (or test) I need to be able to eliminate all that and just print a nice message.
Where, how can I configure the reporting of exceptions in my application?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043743#4043743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043743
19 years