[jboss-user] [JBoss AOP] - unbound-bindings...

AdequateSystems do-not-reply at jboss.com
Fri Aug 11 07:43:38 EDT 2006


Hello,

I'm trying to use aopc and nothing happens (I always get "unbound-binding" in aop-report.xml)...

My jboss-aop.xml is:

<?xml version="1.0" encoding="UTF-8"?>
  | <aop>
  |     <bind pointcut="execution(* *->@com.adequate.entity.RemoteInvocation*(..))">
  |         <interceptor class="com.adequate.aop.EntityRemoteInvocationInterceptor" />
  |     </bind>
  | </aop>
  | 

It should match all methods marked with the @com.adequate.entity.RemoteInvocation annotation.

I have a class Person.java (ejb 3.0 entitybean) with:

@Entity
  | public class Person extends AbstractSEntity {
  |     ...
  | 
  |     @RemoteInvocation
  |     public void sendEMail() {
  |         ...
  |     }
  |     ...
  | }

My build.xml (eclipse project) is:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <project name="ejb3" default="build">
  | 	
  |   <property name="jboss.home" value="/home/franck/Applications/jboss-4.0.4.GA.ejb3"/>
  |   <property name="jboss.deploy.home" value="${jboss.home}/server/default/deploy"/>
  | 
  |   <target name="prepare">
  |     <property name="jboss.aop.root" value="/home/franck/Devs/jboss-aop_1.5.0.GA" />
  |     <property name="jboss.aop.lib" value="${jboss.aop.root}/lib-50" />
  | 
  |     <path id="classpath">
  |       <fileset dir="${jboss.aop.lib}">
  |         <include name="*.jar" />
  |       </fileset>
  |       <pathelement path="." />
  |     </path>
  | 
  |     <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="classpath" />
  |   </target>
  |   
  |   <target name="build" depends="prepare">
  |     
  |     <mkdir dir="build"/>
  |     <mkdir dir="build/classes"/>
  |     
  |     <copy todir="build/classes" overwrite="true">
  |       <fileset dir="classes">
  |         <include name="**" />
  |       </fileset>
  |     </copy>
  | 
  |     <aopc compilerclasspathref="classpath" verbose="true">
  |       <classpath path="build/classes"/>
  |       <include name="com/adequate/entity/*.class" />
  |       <src path="src"/>
  |       <aoppath path="jboss-aop.xml"/>
  |     </aopc>
  | 
  |     <aopc compilerclasspathref="classpath" verbose="true" report="true">
  |       <classpath path="build/classes"/>
  |       <include name="com/adequate/entity/*.class" />
  |       <src path="src"/>
  |       <aoppath path="jboss-aop.xml"/>
  |     </aopc>
  |     
  |     <jar destfile="build/service.jar">
  |       <fileset dir="build/classes">
  |         <include name="com/adequate/entity/**"/>
  |         <include name="com/adequate/service/**"/>
  |         <include name="META-INF/**"/>
  |       </fileset>
  |     </jar>
  |   
  |   </target>
  | 
  |   <target name="deploy" depends="build">
  |     <copy todir="${jboss.deploy.home}">
  |       <fileset dir="build">
  |         <include name="service.jar"/>
  |       </fileset>
  |     </copy>
  |   </target>
  | 
  | </project>

When I run this build file (target "build"), I get absolutly nothing... Verbose traces are:

Buildfile: /home/franck/Applications/eclipse/workspace/ejb3/build.xml
  | prepare:
  | build:
  |      [copy] Copying 32 files to /home/franck/Applications/eclipse/workspace/ejb3/build/classes
  |      [aopc] [debug] Passed in instrumentor: null
  |      [aopc] [debug] Defaulting instrumentor to: org.jboss.aop.instrument.ClassicInstrumentor
  |      [aopc] [debug] jboss.aop.class.path is NULL
  |      [aopc] [debug] jboss.aop.search.classpath: 'null' true
  |      [aopc] [debug] jboss.aop.path: /home/franck/Applications/eclipse/workspace/ejb3/jboss-aop.xml
  |      [aopc] jboss.aop.path[0]: /home/franck/Applications/eclipse/workspace/ejb3/jboss-aop.xml
  |      [aopc] [deploying] file:/home/franck/Applications/eclipse/workspace/ejb3/jboss-aop.xml
  |      [aopc] AspectXMLLoader using managerorg.jboss.aop.AspectManager at 54172f
  |      [aopc] Build Successful: 296 ms
  |      [aopc] [debug] Passed in instrumentor: null
  |      [aopc] [debug] Defaulting instrumentor to: org.jboss.aop.instrument.ClassicInstrumentor
  |      [aopc] [debug] jboss.aop.class.path is NULL
  |      [aopc] [debug] jboss.aop.search.classpath: 'null' true
  |      [aopc] [debug] jboss.aop.path: /home/franck/Applications/eclipse/workspace/ejb3/jboss-aop.xml
  |      [aopc] jboss.aop.path[0]: /home/franck/Applications/eclipse/workspace/ejb3/jboss-aop.xml
  |      [aopc] [deploying] file:/home/franck/Applications/eclipse/workspace/ejb3/jboss-aop.xml
  |      [aopc] AspectXMLLoader using managerorg.jboss.aop.AspectManager at 54172f
  |      [aopc] Build Successful: 305 ms
  |       [jar] Building jar: /home/franck/Applications/eclipse/workspace/ejb3/build/service.jar
  | deploy:
  |      [copy] Copying 1 file to /home/franck/Applications/jboss-4.0.4.GA.ejb3/server/default/deploy
  | BUILD SUCCESSFUL
  | Total time: 1 second
  | 

This is of course VERY frustating ;-(
I don't want to use JBoss-IDE (aop project) because I need to have a the possibility to build the entire project outside of Eclipse.

Any help ? Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964588#3964588

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964588



More information about the jboss-user mailing list