0

I have a following AOP pointcut:

<aop:config>
     <aop:pointcut id="myPointcut"
        expression="execution(* com.company.IModule..*(..))
        and !execution(* com.company.IModule.getMethod1(..))" />
    <aop:advisor advice-ref="txAdvice" pointcut-ref="myPointcut" />  
</aop:config>

This works in Weblogic, but fails in JBoss with the exception:

java.lang.IllegalArgumentException: warning no match for this type name: com.company.IModule [Xlint:invalidAbsoluteTypeName]

I tried to replace 'and' with '&amp;&amp;' as per this answer but the result was the same.

If I remove composition and just leave one execution statement it works fine.

JBoss EAP 6.4.0
Weblogic 10.3.6
Java 1.7.0_51
Spring 3.2.8

Community
  • 1
  • 1

1 Answers1

0

It turns out Weblogic is case insensitive, but JBoss only accepts uppercase 'AND'.