title: How to get the errors message with spring mvc in tomcat's catalina.out
body: <p>I request a test link <a href="https://terran.gamebox.com/facebook/issueOrder.jhtml?amount=5&amp;gameId=1&amp;serverId=1&amp;role=role" rel="nofollow">https://terran.gamebox.com/facebook/issueOrder.jhtml?amount=5&amp;gameId=1&amp;serverId=1&amp;role=role</a>
  I can see the message in page
  but the exception did not show in catalina.out</p>
  
  <p>This is my configure file</p>
  
  <pre><code>&lt;bean id="exceptionResolver" class="com.gamebox.HandlerException"&gt;
  </code></pre>
  
  <p></p>
  
  <p><code>HandlerException</code> implements <code>HandlerExceptionResolver</code></p>
  
  <p>I must point that I can get the other controller's exception such as   <code>null pointer</code> exception</p>
  
  <p>I guess it's a spring internal exception, but I need capture all exception in <code>catalina.out</code> file.</p>
  
  <p>I create a <code>@Service</code> dependence in a <code>@Controller</code>, then delete the <code>@Service</code>'s class file.
  When I started the <code>tomcat</code>, everything is OK, I request this controller, I got the exception message, but the <code>catalina.out</code> show nothing.  The <code>tomcat</code> ran in Run mode.</p>
  
  <p>I paste the response message, because this mvc's action will fix next day with this bug, but I will trace nothing in my platform when I use a ajax with mvc in future if it doesn't show in catalina.out and I will be defficult to find nothing.</p>
  
  <p>I am sure it involved transactionManager</p>
  
  <p>java.lang.ClassNotFoundException: com.gamebox.service.FacebookPayOrderService
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      java.lang.Class.getDeclaredFields0(Native Method)
      java.lang.Class.privateGetDeclaredFields(Class.java:2300)
      java.lang.Class.getDeclaredFields(Class.java:1745)
      org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:374)
      org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:322)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:846)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:498)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
      org.springframework.web.method.HandlerMethod.createWithResolvedBean(HandlerMethod.java:220)
      org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:240)
      org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:56)
      org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:298)
      org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1091)
      org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1076)
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:896)
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:270)
      com.gamebox.filter.SiteStatusFilter.doFilterInternal(SiteStatusFilter.java:51)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)</p>