در فایل cxf-servlet.xml نام کلاس Highlight شده را ملاحظه کنید. می توانید کلاس دلخواه خودتان را به جای ApplicationExceptionHandler معرفی کنید.
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"
xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<jaxrs:server address="/" id="service">
<jaxrs:serviceBeans>
<ref bean="restMessageLoaderService"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
<constructor-arg>
<bean class="org.codehaus.jackson.map.ObjectMapper">
<property name="dateFormat">
<bean class="org.codehaus.jackson.map.util.ISO8601DateFormat"/>
</property>
</bean>
</constructor-arg>
</bean>
<bean class="ir.asta.wise.core.datamanagement.exception.ApplicationExceptionHandler"/>
</jaxrs:providers>
</jaxrs:server>
</beans>