Using global-exceptions in modules
Hi all, I'm using modules in my struts application and I want to have some general exceptions handlers that will be used by all modules. When I've put this information im my default struts-config.xml, the exception threw by my sub-module was not catched. When I've put this information in struts-config-OP201_02.xml, the browser couldn't find the page specified in my path because it takes the context relative path. What I have to do to use correctly generals exception handlers that will be shared by all modules? Thanks in advance, Bruno Moreno __ Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora: http://br.yahoo.com/info/mail.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Global-exceptions
Hi all I'm a bad coder so sometimes I get nullpointer exceptions thrown back from an action So I declared a global-exception in my struts-config. global-exceptions exception key=errors.nullpointer type=java.lang.NullPointerException path=page.error/ /global-exceptions Problem is that I'm losing the message that comes with the exception. Is there a way to get the complete message? In an action when I use new ActionError(error.database, exception.toString() the complete error is shown by using html:errors/ I tried %= request.getAttribute(org.apache.struts.Globals.EXCEPTION_KEY) % but this only gives me java.lang.NullPointerException TIA Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Probelm with global-exceptions routing.
I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown below. But still I am getting java.lang.NullPointerException instead of being routed to the index.jsp. Is there anything that I am missing. Any clues please. public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { try { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION TRY ] - ); NullPointerException n = new NullPointerException(); throw n; } catch(Error e) { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION CATCH ] - ); } } Made the below entries in struts-config.xml global-exceptions exception key=message.example.simple path=/index.jsp type =java.lang.NullPointerException/ /global-exceptions controller processorClass=examples.MyRequestProcessor/ The stack trace that I am getting on the screen: java.lang.NullPointerException at examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190 Regards Sreekant G This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Probelm with global-exceptions routing.
Afaik, the global-exceptions only traps exceptions thrown up from your actions (not from the RP or the JSPs) (I could be wrong about this though!) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 5 September 2003 16:50 To: [EMAIL PROTECTED] Subject: Probelm with global-exceptions routing. I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown below. But still I am getting java.lang.NullPointerException instead of being routed to the index.jsp. Is there anything that I am missing. Any clues please. public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { try { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION TRY ] - ); NullPointerException n = new NullPointerException(); throw n; } catch(Error e) { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION CATCH ] - ); } } Made the below entries in struts-config.xml global-exceptions exception key=message.example.simple path=/index.jsp type =java.lang.NullPointerException/ /global-exceptions controller processorClass=examples.MyRequestProcessor/ The stack trace that I am getting on the screen: java.lang.NullPointerException at examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190 Regards Sreekant G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Probelm with global-exceptions routing.
Basically what I wanted to do in the processPreprocess() method of MyRequestProcessor class was Check if there were any User related credentials in the session, if yes let the process continute. If not then throw the Logon page. Is there any otherway I can achieve this so that the application developer doesn't have to take care of this in each and every Action class that he/she writes. Regards Sreekant G @ 98404-65630 Andrew Hill [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] idnode.com cc: Subject: RE: Probelm with global-exceptions routing. 09/05/2003 02:27 PM Please respond to Struts Users Mailing List Afaik, the global-exceptions only traps exceptions thrown up from your actions (not from the RP or the JSPs) (I could be wrong about this though!) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 5 September 2003 16:50 To: [EMAIL PROTECTED] Subject: Probelm with global-exceptions routing. I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown below. But still I am getting java.lang.NullPointerException instead of being routed to the index.jsp. Is there anything that I am missing. Any clues please. public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { try { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION TRY ] - ); NullPointerException n = new NullPointerException(); throw n; } catch(Error e) { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION CATCH ] - ); } } Made the below entries in struts-config.xml global-exceptions exception key=message.example.simple path=/index.jsp type =java.lang.NullPointerException/ /global-exceptions controller processorClass=examples.MyRequestProcessor/ The stack trace that I am getting on the screen: java.lang.NullPointerException at examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190 Regards Sreekant G
RE: Probelm with global-exceptions routing.
not sure if struts handles exceptions thrown from RequestProcessor. |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] |Sent: Friday, September 05, 2003 2:20 PM |To: [EMAIL PROTECTED] |Subject: Probelm with global-exceptions routing. | | |I have written my own RequestProcessor class (MyRequestProcessor.java) by |extending the STRUTS provided RequesrProcessor class. I have overridden the |processPreprocess() method as below. Also I have defined the |java.lang.NullPointerException in the global-exceptions of |struts-config.xml as shown below. But still I am getting |java.lang.NullPointerException instead of being routed to the index.jsp. Is |there anything that I am missing. Any clues please. | |public boolean processPreprocess(HttpServletRequest request, |HttpServletResponse response) |{ | try | { |System.out.println( --- [MY REQUEST PROCESSOR |CLASS EXCEPTION TRY ] - ); |NullPointerException n = new NullPointerException(); |throw n; | } | catch(Error e) | { |System.out.println( --- [MY REQUEST PROCESSOR |CLASS EXCEPTION CATCH ] - ); | } |} | | |Made the below entries in struts-config.xml | |global-exceptions |exception key=message.example.simple path=/index.jsp type |=java.lang.NullPointerException/ |/global-exceptions | |controller processorClass=examples.MyRequestProcessor/ | | | |The stack trace that I am getting on the screen: |java.lang.NullPointerException | at |examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) | at |org.apache.struts.action.RequestProcessor.process(RequestProcessor. |java:237) | | at |org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) | at |org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) | 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(Ap |plicationFilterChain.java:247) | | at |org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicatio |nFilterChain.java:193) | | at |org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrappe |rValve.java:243) | | at |org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli |ne.java:566) | | at |org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) | at |org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) | at |org.apache.catalina.core.StandardContextValve.invoke(StandardContex |tValve.java:190 | |Regards |Sreekant G | | | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Probelm with global-exceptions routing.
U can add a Servlet in your web.xml which will check for User credential Regards Rohit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 3:17 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: RE: Probelm with global-exceptions routing. Basically what I wanted to do in the processPreprocess() method of MyRequestProcessor class was Check if there were any User related credentials in the session, if yes let the process continute. If not then throw the Logon page. Is there any otherway I can achieve this so that the application developer doesn't have to take care of this in each and every Action class that he/she writes. Regards Sreekant G @ 98404-65630 Andrew Hill [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] idnode.com cc: Subject: RE: Probelm with global-exceptions routing. 09/05/2003 02:27 PM Please respond to Struts Users Mailing List Afaik, the global-exceptions only traps exceptions thrown up from your actions (not from the RP or the JSPs) (I could be wrong about this though!) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 5 September 2003 16:50 To: [EMAIL PROTECTED] Subject: Probelm with global-exceptions routing. I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown below. But still I am getting java.lang.NullPointerException instead of being routed to the index.jsp. Is there anything that I am missing. Any clues please. public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { try { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION TRY ] - ); NullPointerException n = new NullPointerException(); throw n; } catch(Error e) { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION CATCH ] - ); } } Made the below entries in struts-config.xml global-exceptions exception key=message.example.simple path=/index.jsp type =java.lang.NullPointerException/ /global-exceptions controller processorClass=examples.MyRequestProcessor/ The stack trace that I am getting on the screen: java.lang.NullPointerException at examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66
RE: Probelm with global-exceptions routing.
Look into using a Filter for this. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 5:47 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: RE: Probelm with global-exceptions routing. Basically what I wanted to do in the processPreprocess() method of MyRequestProcessor class was Check if there were any User related credentials in the session, if yes let the process continute. If not then throw the Logon page. Is there any otherway I can achieve this so that the application developer doesn't have to take care of this in each and every Action class that he/she writes. Regards Sreekant G @ 98404-65630 Andrew Hill [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] idnode.com cc: Subject: RE: Probelm with global-exceptions routing. 09/05/2003 02:27 PM Please respond to Struts Users Mailing List Afaik, the global-exceptions only traps exceptions thrown up from your actions (not from the RP or the JSPs) (I could be wrong about this though!) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 5 September 2003 16:50 To: [EMAIL PROTECTED] Subject: Probelm with global-exceptions routing. I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown below. But still I am getting java.lang.NullPointerException instead of being routed to the index.jsp. Is there anything that I am missing. Any clues please. public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { try { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION TRY ] - ); NullPointerException n = new NullPointerException(); throw n; } catch(Error e) { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION CATCH ] - ); } } Made the below entries in struts-config.xml global-exceptions exception key=message.example.simple path=/index.jsp type =java.lang.NullPointerException/ /global-exceptions controller processorClass=examples.MyRequestProcessor/ The stack trace that I am getting on the screen: java.lang.NullPointerException at examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) at org.apache.struts.action.RequestProcessor.process(RequestProcessor .java:237) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:190 Regards Sreekant G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Probelm with global-exceptions routing.
Dear Sreekant, When I programmed my RequestProcessor a about 2 weeks ago, I found processRoles() throws exceptions which are absolutely not catchable by any Exceptions listings in struts-config.xml. So, I wrote better Java code to catch things like null pointers. Or (pardon the thick sarcasm), you could try/catch it yourself in your method. The reference to my filter is: http://www.mail-archive.com/[EMAIL PROTECTED]/msg78455.html I did one typo, in step #3 i wrote 'scope=' when it should be 'roles=.'. I've never had one login-related exception (null pointer or otherwise) since the day I wrote the above RequestProcessor class, which I have in place and test under every day. The hard part for me was figuring out how to redirect to the page of my choice, which you'll find in my example code. Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 5:47 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: RE: Probelm with global-exceptions routing. Basically what I wanted to do in the processPreprocess() method of MyRequestProcessor class was Check if there were any User related credentials in the session, if yes let the process continute. If not then throw the Logon page. Is there any otherway I can achieve this so that the application developer doesn't have to take care of this in each and every Action class that he/she writes. Regards Sreekant G @ 98404-65630 Andrew Hill [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] idnode.com cc: Subject: RE: Probelm with global-exceptions routing. 09/05/2003 02:27 PM Please respond to Struts Users Mailing List Afaik, the global-exceptions only traps exceptions thrown up from your actions (not from the RP or the JSPs) (I could be wrong about this though!) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 5 September 2003 16:50 To: [EMAIL PROTECTED] Subject: Probelm with global-exceptions routing. I have written my own RequestProcessor class (MyRequestProcessor.java) by extending the STRUTS provided RequesrProcessor class. I have overridden the processPreprocess() method as below. Also I have defined the java.lang.NullPointerException in the global-exceptions of struts-config.xml as shown below. But still I am getting java.lang.NullPointerException instead of being routed to the index.jsp. Is there anything that I am missing. Any clues please. public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { try { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION TRY ] - ); NullPointerException n = new NullPointerException(); throw n; } catch(Error e) { System.out.println( --- [MY REQUEST PROCESSOR CLASS EXCEPTION CATCH ] - ); } } Made the below entries in struts-config.xml global-exceptions exception key=message.example.simple path=/index.jsp type =java.lang.NullPointerException/ /global-exceptions controller processorClass=examples.MyRequestProcessor/ The stack trace that I am getting on the screen: java.lang.NullPointerException at examples.MyRequestProcessor.processPreprocess(MyRequestProcessor.java:36) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190 Regards Sreekant G - To unsubscribe, e-mail
RE: global-exceptions parse error
Fount it...wrong dtd -Original Message- From: Manish Shah Sent: Wednesday, December 11, 2002 5:24 PM To: [EMAIL PROTECTED] Subject: global-exceptions parse error It must be something really stupid but when is it not. I am trying to use global exceptions but I keep getting this parse error. I have attached the struts-config here...please let me know Thanks ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config !-- == Data Sources Definitions === -- !-- Define your Struts data sources in a file called struts-data-sources.xml and place it in your merge directory. -- !-- == Form Bean Definitions === -- form-beans form-bean name=bundleEJB.PMgr type=com.bdp.propertymgr.app.forms.BundleEJBPMgrForm / form-bean name=propertyEJB.PMgr type=com.bdp.propertymgr.app.forms.PropertyEJBPMgrForm / form-bean name=PMSearch.PMgr type=com.bdp.propertymgr.app.forms.PMSearchForm / form-bean name=PMUpload.PMgr type=com.bdp.propertymgr.app.forms.UploadForm / !-- If you have non XDoclet forms, define them in a file called struts-forms.xml and place it in your merge directory. -- /form-beans !-- == Global Exceptions Definitions === -- global-exceptions exception key=global.error.ServletException path=/failure.jsp scope=request type=javax.servlet.ServletException/ exception key=global.error.NullPointerException path=/failure.jsp scope=request type=java.lang.NullPointerException/ exception key=global.error.DelegateException path=/failure.jsp scope=request type=com.bdp.baseclasses.app.common.exceptions.DelegateException/ /global-exceptions !-- == Global Forward Definitions === -- !-- Define your forwards in a file called global-forwards.xml and place it in your merge directory. -- !-- == Action Mapping Definitions === -- action-mappings action path=/propertyPipelineView type=com.bdp.propertymgr.app.action.PropertyPipelineAction name=PMgrPropertyPipelineView scope=request input=/bundlePipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=success path=/propertyPipelineView.jsp redirect=false / /action action path=/preManageBundleAction type=com.bdp.propertymgr.app.action.PreManageBundleAction name=bundleEJB.PMgr scope=request input=/bundlePipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=addBundle path=/bundlePreAddEditView.jsp redirect=false / forward name=editBundle path=/bundlePreAddEditView.jsp redirect=false / forward name=bundlelist_fail path=/do/bundlePipelineView redirect=false / forward name=bundlelist_pass path=/do/bundlePipelineView redirect=true / /action action path=/managePropertyAction type=com.bdp.propertymgr.app.action.ManagePropertyAction name=propertyEJB.PMgr scope=request input=/propertyPreAddEditView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=addProperty path=/do/propertyPipelineView redirect=true / forward name=editProperty path=/do/propertyPipelineView redirect=true / forward name=cloneProperty path=/do/propertyPipelineView redirect=true / forward name=back path=/propertyPreAddEditView.jsp redirect=false / /action action path=/searchPropertyAction type=com.bdp.propertymgr.app.action.SearchPropertyAction name=PMSearch.PMgr scope=request input=/propertyPipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=success path=/propertyPipelineView.jsp redirect=false / /action action path=/preManagePropertyAction type=com.bdp.propertymgr.app.action.PreManagePropertyAction name=propertyEJB.PMgr scope=request input
global-exceptions parse error
It must be something really stupid but when is it not. I am trying to use global exceptions but I keep getting this parse error. I have attached the struts-config here...please let me know Thanks ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config !-- == Data Sources Definitions === -- !-- Define your Struts data sources in a file called struts-data-sources.xml and place it in your merge directory. -- !-- == Form Bean Definitions === -- form-beans form-bean name=bundleEJB.PMgr type=com.bdp.propertymgr.app.forms.BundleEJBPMgrForm / form-bean name=propertyEJB.PMgr type=com.bdp.propertymgr.app.forms.PropertyEJBPMgrForm / form-bean name=PMSearch.PMgr type=com.bdp.propertymgr.app.forms.PMSearchForm / form-bean name=PMUpload.PMgr type=com.bdp.propertymgr.app.forms.UploadForm / !-- If you have non XDoclet forms, define them in a file called struts-forms.xml and place it in your merge directory. -- /form-beans !-- == Global Exceptions Definitions === -- global-exceptions exception key=global.error.ServletException path=/failure.jsp scope=request type=javax.servlet.ServletException/ exception key=global.error.NullPointerException path=/failure.jsp scope=request type=java.lang.NullPointerException/ exception key=global.error.DelegateException path=/failure.jsp scope=request type=com.bdp.baseclasses.app.common.exceptions.DelegateException/ /global-exceptions !-- == Global Forward Definitions === -- !-- Define your forwards in a file called global-forwards.xml and place it in your merge directory. -- !-- == Action Mapping Definitions === -- action-mappings action path=/propertyPipelineView type=com.bdp.propertymgr.app.action.PropertyPipelineAction name=PMgrPropertyPipelineView scope=request input=/bundlePipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=success path=/propertyPipelineView.jsp redirect=false / /action action path=/preManageBundleAction type=com.bdp.propertymgr.app.action.PreManageBundleAction name=bundleEJB.PMgr scope=request input=/bundlePipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=addBundle path=/bundlePreAddEditView.jsp redirect=false / forward name=editBundle path=/bundlePreAddEditView.jsp redirect=false / forward name=bundlelist_fail path=/do/bundlePipelineView redirect=false / forward name=bundlelist_pass path=/do/bundlePipelineView redirect=true / /action action path=/managePropertyAction type=com.bdp.propertymgr.app.action.ManagePropertyAction name=propertyEJB.PMgr scope=request input=/propertyPreAddEditView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=addProperty path=/do/propertyPipelineView redirect=true / forward name=editProperty path=/do/propertyPipelineView redirect=true / forward name=cloneProperty path=/do/propertyPipelineView redirect=true / forward name=back path=/propertyPreAddEditView.jsp redirect=false / /action action path=/searchPropertyAction type=com.bdp.propertymgr.app.action.SearchPropertyAction name=PMSearch.PMgr scope=request input=/propertyPipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward name=success path=/propertyPipelineView.jsp redirect=false / /action action path=/preManagePropertyAction type=com.bdp.propertymgr.app.action.PreManagePropertyAction name=propertyEJB.PMgr scope=request input=/propertyPipelineView.jsp unknown=false validate=false forward name=failure path=/failure.jsp redirect=false / forward