-
Mar 28th, 2011, 05:22 PM
#1
AOP and CXF
I have a jaxrs:client called: auditClient, defined in a jboss-cxf.xml configuration file. I am running this on jboss.
I have also defined an audit class, lets call: auditImpl.java
The auditImpl class has the @Aspect annotation and I have defined a @Before pointcut/advice. I also have the @Component annotation on this class.
In the application context configuration file, I have identified the auditImpl class and included the jaxrs:client bean as a property.
I also have <aop:aspectj-autoproxy/> in this config file.
When I deploy this setup, I get the following error:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'auditClient': Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$Reflect ionWorldException: warning can't determine superclass of missing type $Proxy435
[Xlint:cantFindType]
I may be way off on this, but my understanding was that a class annotated with @Aspect, prevents that class from being proxied.
The jaxrs:client definition, is a proxy web client.
I am assuming my problem is that I have a proxied web client bean, included in an @Aspect annotated class, thus causing the issue.
Is this correct in my thinking? Is there a way around this?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules