"alesj" wrote : 1) you should use real naming factory, not the one from example
|
Ups. It is now set to org.jnp.interfaces.NamingContextFactory (from jndi.properties)
"alesj" wrote : 2) I don't think you need AspectManager
| Just simply change the name in advice/aspect/interceptor with AspectManagerJDK5
|
Yes, aop.xml in the default server conf directory creates a bean with the name
AspectManager and type org.jboss.aop.deployers.AspectManagerJDK5.
Wich brings us back to square 1.
org.jboss.aop.microcontainer.beans.Aspect and
org.jboss.aop.microcontainer.beans.IntroductionBinding expect an
org.jboss.aop.AspectManager to be injected. However, the injected Aspectmanager is of type
org.jboss.aop.deployers.AspectManagerJDK5 (as defined in aop.xml).
| java.lang.RuntimeException: Error configuring property: manager for JndiAspect
| Caused by: java.lang.IllegalArgumentException: Wrong arguments. setManager for target
org.jboss.aop.microcontainer.beans.Aspect@a43bbd expected=[org.jboss.aop.AspectManager]
actual=[org.jboss.aop.deployers.AspectManagerJDK5]
|
| java.lang.RuntimeException: Error configuring property: manager for JndiIntroduction
| Caused by: java.lang.IllegalArgumentException: Wrong arguments. setManager for target
org.jboss.aop.microcontainer.beans.IntroductionBinding@96ea7d
expected=[org.jboss.aop.AspectManager] actual=[org.jboss.aop.deployers.AspectManagerJDK5]
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202512#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...