Hi there maybe add a typo in the bean definition to enforce an error: <bean id="OwnInterceptor" class="notexist.pl.skoropada.OwnInterceptor" />
if the beans.xml is picked up it should throw an exception. BTW, you don't need the following imports anymore (since 2.4) <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> Oli ________________________________________ Von: Freeman Fang [[email protected]] Gesendet: Mittwoch, 20. Juli 2011 09:44 An: [email protected] Betreff: Re: Add custom inceptor through configuration Hi, Is it possible that somehow your beans.xml can't be picked up? How you specify beans.xml in your application? Freeman On 2011-7-20, at 下午3:28, kris wrote: > Hi, > > current beans.xml: > <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:cxf="http://cxf.apache.org/core" > xsi:schemaLocation=" > http://cxf.apache.org/core > http://cxf.apache.org/schemas/core.xsd > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> > <import resource="classpath:META-INF/cxf/cxf.xml" /> > <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> > <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > <bean id="OwnInterceptor" class="pl.skoropada.OwnInterceptor" /> > <cxf:bus> > <cxf:inInterceptors> > <ref bean="OwnInterceptor" /> > </cxf:inInterceptors> > </cxf:bus> > </beans> > > > > unfortunately it doesn't work.. > > in current interceptors flow i can't find OwnInterceptor > > receive [AttachmentInInterceptor] > post-stream [StaxInInterceptor] > read [WSDLGetInterceptor, ReadHeadersInterceptor, > SoapActionInInterceptor, > StartBodyInterceptor] > pre-protocol [MustUnderstandInterceptor] > post-protocol [CheckFaultInterceptor, > JAXBAttachmentSchemaValidationHack] > unmarshal [URIMappingInterceptor, DocLiteralInInterceptor, > SoapHeaderInterceptor] > post-logical [WrapperClassInInterceptor] > pre-invoke [SwAInInterceptor, HolderInInterceptor] > > > I spent half a day to try to resolve this problem-without any effect.. > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Add-custom-inceptor-through-configuration-tp4613763p4614990.html > Sent from the cxf-user mailing list archive at Nabble.com. --------------------------------------------- Freeman Fang FuseSource Email:[email protected] Web: fusesource.com Twitter: freemanfang Blog: http://freemanfang.blogspot.com
