-
Oct 6th, 2009, 05:13 AM
#1
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules