in your sample there is no beans.xml. once added one with your interceptor you see the method is not the same (because of the generic usage) so the interceptor can't match the child (not the same signature)
a simple workaround is to @logged on the class and not on the method. *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/4/2 ZhongGuan <[email protected]> > Another question > > In the JAXBContextResolver.java I have uploaded, > I try to use jaxbContext = JAXBContext.newInstance("prototype.dto"); > to create JaxbContext. > > in Tomee 1.5 that is OK, > but in 1.6, it throws exception. > > there is no ObjectFactory.class or jaxb.index in "prototype.dto", > but I do have a jaxb.index file in that folder and in classpath. > > thanks. > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/JAX-RS-with-CDI-interceptor-IN-Tomee-tp4661885p4661901.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
