Sure,

This is it


<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxrs="http://cxf.apache.org/jaxrs";
        xmlns:context="http://www.springframework.org/schema/context";
        xsi:schemaLocation="
                http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.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-extension-jaxrs-binding.xml"
/>
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
        
        <context:component-scan base-package="nl.myproject.ws"/>
        
        <jaxrs:server id="restContainer" address="/">
                <!-- logginininterceptor captures the incoming message. Disable 
in
production! 
                <jaxrs:inInterceptors>
                    <bean 
class="org.apache.cxf.interceptor.LoggingInInterceptor">
                                <constructor-arg value="write"/> 
                        </bean>
                </jaxrs:inInterceptors>
                -->
                <jaxrs:properties>
                        <entry key="attachment-memory-threshold" 
value="1500000"/>
                </jaxrs:properties>
                <jaxrs:serviceBeans>
                        <ref bean="contentImport"/>
                </jaxrs:serviceBeans>
        </jaxrs:server>

</beans>



<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxws="http://cxf.apache.org/jaxws";
        xmlns:context="http://www.springframework.org/schema/context";
        xsi:schemaLocation="
                http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
                http://cxf.apache.org/jaxws 
http://cxf.apache.org/schemas/jaxws.xsd";>
        
        <jaxws:client id="vatClient"
                serviceClass="nl.myproject.service.CheckVatService"
        
address="http://ec.europa.eu/taxation_customs/vies/services/checkVatService";
        
wsdlLocation="http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl";
                xmlns:ns="urn:ec.europa.eu:taxud:vies:services:checkVat"
                name="ns:checkVatService"
                endpointName="ns:checkVatPort"
                serviceName="ns:checkVatService"
                />
        
</beans>



public abstract class AbstractContentImport {
        protected OfferManager offerMgr;
        protected SpringValidator validator;
        
        protected MessageSource messages;
        
        @Autowired
        public void setOfferManager(OfferManager offerMgr) {
                this.offerMgr = offerMgr;
        }       

        private static final Log log =
LogFactory.getLog(AbstractContentImport.class);

        @Autowired
        public void setMessages(MessageSource messages) {
                this.messages = messages;
        }

        @Autowired
        public void setValidator(SpringValidator validator) {
                this.validator = validator;
        }
        [...]

@Service("contentImport")
//@Secured({"ROLE_WS","ROLE_ADMIN"})
@Path("/v1")
public class ContentImportServiceImpl extends AbstractContentImport
implements ContentImport{
                
        private static final Log log =
LogFactory.getLog(ContentImportServiceImpl.class);

        @Override
        @POST
        @Path("/import/single")
//      @Secured({"ROLE_WS","ROLE_ADMIN"})
        @Produces("text/xml")
        public ResponseObject importContent(RequestObject ro){
                ResponseObject response = new ResponseObject();
                importBase(ro,
response,SecurityContextHolder.getContext().getAuthentication().getAuthorities(),new
Class<?>[]{CheckWebservice.class});
                
                return response;
        }
        
        [..]


I'll force some exceptions in my dev environment and see where the exception
eating originates.
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-not-shutting-down-properly-and-eating-real-error-messages-tp3338081p3339472.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to