-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.1
-
Documentation (Ref Guide, User Guide, etc.)
-
Low
-
Not Required
We have an error of
Caused by: org.jboss.xb.binding.JBossXBRuntimeException:
{urn:jboss:aop-beans:1.0}interceptor not found as a child of
{urn:jboss:aop-beans:1.0}bind in unordered_sequence:
{urn:jboss:aop-beans:1.0}alias*
{urn:jboss:aop-beans:1.0}install*
{urn:jboss:aop-beans:1.0}create?
{urn:jboss:aop-beans:1.0}property*
{urn:jboss:aop-beans:1.0}incallback*
{urn:jboss:aop-beans:1.0}start?
{urn:jboss:aop-beans:1.0}uninstall*
{urn:jboss:aop-beans:1.0}uncallback*
{urn:jboss:aop-beans:1.0}annotation*
{urn:jboss:aop-beans:1.0}constructor?
{urn:jboss:aop-beans:1.0}demand*
{urn:jboss:aop-beans:1.0}depends*
{urn:jboss:aop-beans:1.0}supply*
{urn:jboss:aop-beans:1.0}classloader?
{choice}*
using this
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<bind pointcut="execution(public !static * $instanceof
<interceptor class="com.demo.SimpleInterceptor" />
</bind>
<bind pointcut="execution(public !static * $instanceof{com.service.MPService}->*(..))>
<interceptor class="com.demo.SimpleInterceptor" />
</bind>
</aop>
It works after changing to this.
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<interceptor name="SimpleInterceptor" class="com.demo.SimpleInterceptor"/>
<bind pointcut="execution(public !static * $instanceof{com.data.dataaccess.DataAccessBase}
->*(..))>
<interceptor-ref name="SimpleInterceptor" />
</bind>
<bind pointcut="execution(public !static * $instanceof
->*(..))>
<interceptor-ref name="SimpleInterceptor" />
</bind>
</aop>
The misleading doc is located here:
http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/5/html/Administration_And_Configuration_Guide/ch 08s03.html