Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

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:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
SimpleMappingExceptionResolver does not work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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">
    <props>
    <prop key="org.springframework.webflow.execution.ActionE xecutionException" >JHexception</prop>
    <prop key="java.lang.NullPointerException"> JHexception</prop>
    <prop key="java.lang.Exception">JHexception</prop>
    </props>
    </property>
    <property name="defaultErrorView" value="JHexception" />
    </bean>

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

    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...
Working...
X