Hi all, 
I create a simple cxf project based on maven archetype. 

I deploy the on the war in tomcat and it works fine. But when I try to add a
custom interceptor, tomcat could not deploy the archive I get these
Exception:

Exception :
*Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.interceptor.Fault: Could not create annotation object:
foo.CustomInterceptor
Caused by: org.apache.cxf.interceptor.Fault: Could not create annotation
object: foo.CustomInterceptor
Caused by: java.lang.ClassNotFoundException: foo.CustomInterceptor*

Why tomcat can't find my classe CustomInterceptor. Yet I add it in the same
package "foo".

My implementation code : 
package foo;

import javax.annotation.Resource;
import javax.jws.WebService;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.handler.MessageContext;

import org.apache.cxf.interceptor.InInterceptors;

@WebService(endpointInterface = "foo.HelloWorld")
@InInterceptors (interceptors = {"foo.CustomInterceptor"})
public class HelloWorldImpl implements HelloWorld {
//...//
}

Thanks for replay. 

M-A

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Why-my-custom-interceptor-class-not-found-when-deploing-on-tomcat-tp5459645p5459645.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to