Hello Spring Users.

I am having trouble with viewing error logs when I have a exception resolver set in my *-servlet.xml

Here is my exception resolver.


<!-- Exception Resolver -->
<bean id="exceptionResolver"
class="org.springframework.web.servlet.handler.Sim pleMappingExceptionResolver">
<property name="exceptionMappings">
<props>
<!-- The value of the property will get resolved by the view resolver to display the error page -->
<prop key="java.lang.Exception">Error</prop>
</props>
</property>
</bean>


Example situation :
Here is a method in my controller

public ModelAndView handleRemoveReusableUrl(HttpServletRequest request,
HttpServletResponse response) throws ServletException {


ModelAndView mav = new ModelAndView("redirectollUrls.htm");


service.save();


return mav;
}


in this method, the save() throws a DB exception say a DataAccessException.
Now I dont want to catch the exception here and I want to show the error page , as defined in the Exception handller. But I also want to error stack trace to be available in the logs.

How can I achieve this so thatI can see error message and do the necessary debugging.


Thanks
Aayush.