Pre-compiled failed to work on JBoss Enterprise Application Platform

Solution Verified - Updated -

Issue

We are trying to setup JBoss Aop in EPP 5.1.0, using the precompiled option. We saw all classes got generated by maven AOP plugins. But the AOP pointcut is not running and got the following error:

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}*

Following is our aop.xml:

<?xml version="1.0" encoding="UTF-8"?>
<aop  xmlns="urn:jboss:aop-beans:1.0">
     <bind pointcut="execution(public !static * $instanceof{com.data.dataaccess.DataAccessBase}->*(..))">
            <interceptor class="com.interceptors.SimpleInterceptor" /> 
       </bind>
     <bind pointcut="execution(public !static * $instanceof{com.service.MPService}->*(..))">
            <interceptor class="com.interceptors.SimpleInterceptor" /> 
       </bind>
</aop>

The mp-aop.xml is in the default/deploy folder and all the jboss-aop*.jar are copied into the default/lib.

Are we missing something? Could you provide instruction on how to config and package the aop in EPP 5.1? An example would be very helpful.

Environment

  • JBoss Enterprise Application Platform 5.x
  • JBoss Enterprise Portal Platform 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content