Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
SimpleMappingExceptionResolver does not work Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleMappingExceptionResolver does not work

    I have defined bean:

    <bean id="SimpleMappingExceptionRes" class="org.springframework.web.servlet.handler.Sim pleMappingExceptionResolver">
    <property name="exceptionMappings">
    <prop key="org.springframework.webflow.execution.ActionE xecutionException" >JHexception</prop>
    <prop key="java.lang.NullPointerException"> JHexception</prop>
    <prop key="java.lang.Exception">JHexception</prop>
    <property name="defaultErrorView" value="JHexception" />

    <bean id="faceletsViewResolver" class="org.springframework.web.servlet.view.UrlBas edViewResolver">
    <property name="viewClass"
    <property name="prefix" value="/WEB-INF/" />
    <property name="suffix" value=".xhtml" />

    File JHexception.xhtml is located in WEB-INF.

    In code is thrown exception e.g. new java.lang.NullPointerException();, but normal error track list occures. What could be the problem?

    I'm using Spring 2.5.6. Thanx...