struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Maurer <joerg.mau...@ucpmorgen.com>
Subject how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
Date Tue, 04 Mar 2003 11:54:50 GMT
Hi struts people!

I have really defined everywhere i think i can put an exception handler
for servlet exception : 
1.) in my base layout.jsp an <%@
errorPage='/pages/common/error/errorsGeneralHandler.jsp'%>
2.) in struts config a global exception handler
         <global-exceptions>
          <exception 
            path="pages/common/error/errorsGeneralHandler.jsp"
            type="javax.servlet.ServletException"/>  
         </global-exceptions> 
3.) in web.xml
  <error-page>
    <exception-type>javax.servlet.ServletException</exception-type>
    <location>/pages/common/error/errorsGeneralHandler.jsp</location>
  </error-page>

Still ServletException slip through my guards. Last know point as stack
trace shows below is
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilSt
rutsModulesImpl.java:122) , which throws ServletException but is never
catchable to me. The point is not the FileNotFound, which is pretty
clear to me, but why such exception doesn´t hit any of my error handler.

Any hints appreciated!


2003-03-04 12:36:06 ApplicationDispatcher[] Servlet.service() for
servlet jsp threw exception
javax.servlet.ServletException: /pages/wf_category/pager_region.jsp
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:183)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
        at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:819)
        at
org.apache.jsp.wf_0005fcategory_0005fchoose$jsp._jspService(wf_0005fcate
gory_0005fchoose$jsp.java:107)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:173)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
        at
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilSt
rutsModulesImpl.java:122)
        at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
        at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
        at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:818)
        at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
        at
org.apache.jsp.base_0005flayout$jsp._jspService(base_0005flayout$jsp.jav
a:1006)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:173)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:431)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:355)
        at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1033)
        at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:269)
        at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til
esRequestProcessor.java:249)
        at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:303)
        at
org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
ocessor.java:401)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1407)
        at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:496)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
7)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1027)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1125)
        at java.lang.Thread.run(Thread.java:536)
----- Root Cause -----
java.io.FileNotFoundException: /pages/wf_category/pager_region.jsp
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.loadJSP(IDEJs
pServlet.java:376)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.loadIfNecessary(IDEJspServlet.java:148)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:160)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
        at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:819)
        at
org.apache.jsp.wf_0005fcategory_0005fchoose$jsp._jspService(wf_0005fcate
gory_0005fchoose$jsp.java:107)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:173)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
        at
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilSt
rutsModulesImpl.java:122)
        at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
        at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
        at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:818)
        at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
        at
org.apache.jsp.base_0005flayout$jsp._jspService(base_0005flayout$jsp.jav
a:1006)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:173)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
        at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:431)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:355)
        at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1033)
        at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:269)
        at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til
esRequestProcessor.java:249)
        at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:303)
        at
org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
ocessor.java:401)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1407)
        at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:496)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
7)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1027)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1125)
        at java.lang.Thread.run(Thread.java:536)

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message