[jboss-user] [JBoss AOP] - Re: Maven 2 plugin?

legolas do-not-reply at jboss.com
Wed Nov 14 07:46:03 EST 2007


Hi,

I am trying to use your plugin but run into problems. I get the following when running mvn process-classes -X:
[INFO] [jbossaop:compile {execution: default}] 
  |    CLASSPATH: \DataDisk\var\m2\repository\concurrent\concurrent\1.3.4\concurrent-1.3.4.jar;
  |               \DataDisk\var\m2\repository\jboss\jboss-common-logging-spi\2.0.4.GA\jboss-common-logging-spi-2.0.4.GA.jar;
  |               \DataDisk\var\m2\repository\qdox\qdox\1.6\qdox-1.6.jar;
  |               \DataDisk\var\m2\repository\apache-httpclient\commons-httpclient\2.0.2\commons-httpclient-2.0.2.jar;
  |               \DataDisk\var\m2\repository\org\jboss\javassist\3.6.0.GA\javassist-3.6.0.GA.jar;
  |               \DataDisk\var\m2\repository\apache-xerces\xml-apis\2.7.1\xml-apis-2.7.1.jar;
  |               \DataDisk\var\m2\repository\ant\ant\1.6.5\ant-1.6.5.jar;
  |               \DataDisk\var\m2\repository\trove\trove\2.1.1\trove-2.1.1.jar;
  |               \DataDisk\var\m2\repository\org\jboss\aop\jboss-aop\2.0.0.beta1\jboss-aop-2.0.0.beta1.jar;
  |               \DataDisk\var\m2\repository\apache-slide\webdavlib\2.0\webdavlib-2.0.jar;
  |               \DataDisk\var\m2\repository\org\codehaus\plexus\plexus-utils\1.4.2\plexus-utils-1.4.2.jar;
  |               \DataDisk\var\m2\repository\org\jboss\jboss-common-core\2.2.1.GA\jboss-common-core-2.2.1.GA.jar;
  |               C:\usr\Java\maven-2.0.7\bin\..\lib\maven-core-2.0.7-uber.jar;
  |               C:\usr\Java\maven-2.0.7\bin\..\lib\maven-core-2.0.7-uber.jar;
  |               C:\DataDisk\Workspaces\Amf\product_java_jboss_NodeAgent\target\classes
  | [DEBUG] Executing aopc: cmd.exe /X /C '"
  |     java -cp \DataDisk\var\m2\repository\concurrent\concurrent\1.3.4\concurrent-1.3.4.jar;
  |              \DataDisk\var\m2\repository\jboss\jboss-common-logging-spi\2.0.4.GA\jboss-common-logging-spi-2.0.4.GA.jar;
  |              \DataDisk\var\m2\repository\qdox\qdox\1.6\qdox-1.6.jar;
  |              \DataDisk\var\m2\repository\apache-httpclient\commons-httpclient\2.0.2\commons-httpclient-2.0.2.jar;
  |              \DataDisk\var\m2\repository\org\jboss\javassist\3.6.0.GA\javassist-3.6.0.GA.jar;
  |              \DataDisk\var\m2\repository\apache-xerces\xml-apis\2.7.1\xml-apis-2.7.1.jar;
  |              \DataDisk\var\m2\repository\ant\ant\1.6.5\ant-1.6.5.jar;
  |              \DataDisk\var\m2\repository\trove\trove\2.1.1\trove-2.1.1.jar;
  |              \DataDisk\var\m2\repository\org\jboss\aop\jboss-aop\2.0.0.beta1\jboss-aop-2.0.0.beta1.jar;
  |              \DataDisk\var\m2\repository\apache-slide\webdavlib\2.0\webdavlib-2.0.jar;
  |              \DataDisk\var\m2\repository\org\codehaus\plexus\plexus-utils\1.4.2\plexus-utils-1.4.2.jar;
  |              \DataDisk\var\m2\repository\org\jboss\jboss-common-core\2.2.1.GA\jboss-common-core-2.2.1.GA.jar;
  |               C:\usr\Java\maven-2.0.7\bin\..\lib\maven-core-2.0.7-uber.jar;
  |               C:\usr\Java\maven-2.0.7\bin\..\lib\maven-core-2.0.7-uber.jar;
  |               C:\DataDisk\Workspaces\Amf\product_java_jboss_NodeAgent\target\classes
  |          org.jboss.aop.standalone.Compiler 
  |          -verbose 
  |          -aoppath src/test/resources/META-INF/binding-manager-aop.xml 
  |          C:\DataDisk\Workspaces\Amf\product_java_jboss_NodeAgent\target\classes\org\epo\product\jboss\nodeagent\bindingmanager\impl\ApplicationPackageImpl.class
  |          C:\DataDisk\Workspaces\Amf\product_java_jboss_NodeAgent\target\classes\org\epo\product\jboss\nodeagent\bindingmanager\impl\CloneImpl.class"'
  | [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/metadata/spi/signature/Signature
  | [ERROR]         at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:95)
  | [ERROR]         at org.jboss.aop.AspectManager.translate(AspectManager.java:951)
  | [ERROR]         at org.jboss.aop.AspectManager.transform(AspectManager.java:894)
  | [ERROR]         at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:347)
  | [ERROR]         at org.jboss.aop.standalone.Compiler.compile(Compiler.java:236)
  | [ERROR]         at org.jboss.aop.standalone.Compiler.main(Compiler.java:92)
  | [INFO] [aop-debug] org.jboss.aop.instrument.InstrumentorFactory Passed in instrumentor: null
  | [INFO] [aop-debug] org.jboss.aop.instrument.InstrumentorFactory Defaulting instrumentor to: org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
  | [INFO] [aop-debug] org.jboss.aop.AdvisorFactory Passed in advisor: null
  | [INFO] [aop-debug] org.jboss.aop.AdvisorFactory [debug] Defaulting advisor to: org.jboss.aop.ClassAdvisor
  | [INFO] [aop-debug] org.jboss.aop.Deployment jboss.aop.class.path is NULL
  | [INFO] [aop-debug] org.jboss.aop.Deployment jboss.aop.search.classpath: 'null' true
  | [INFO] [aop-debug] org.jboss.aop.Deployment jboss.aop.path: src/test/resources/META-INF/binding-manager-aop.xml
  | [INFO] [aop-debug] org.jboss.aop.Deployment jboss.aop.path[0]: src/test/resources/META-INF/binding-manager-aop.xml
  | [INFO] [aop-debug] org.jboss.aop.Deployment deploying file:/C:/DataDisk/Workspaces/Amf/product_java_jboss_NodeAgent/src/test/resources/META-INF/binding-manager-aop.xml
  | [INFO] [aop-debug] org.jboss.aop.AspectXmlLoader AspectXMLLoader using managerorg.jboss.aop.AspectManager at 1a05308
  | [INFO] ------------------------------------------------------------------------
  | [INFO] BUILD SUCCESSFUL
  | [INFO] ------------------------------------------------------------------------

And following is my pom section defining the plugin:
      <plugin>
  |         <groupId>org.jboss.maven.plugins</groupId>
  |         <artifactId>maven-jbossaop-plugin</artifactId>
  |         <version>2.0.0.beta1</version>
  |         <executions>
  |           <execution>
  |             <phase>process-classes</phase>
  |             <!-- id>compile</id -->
  |             <configuration>
  |               <verbose>true</verbose>
  |               <aoppaths>
  |                 <aoppath>src/test/resources/META-INF/binding-manager-aop.xml</aoppath>
  |               </aoppaths>
  |               <includes>
  |                 <include>org/epo/product/jboss/nodeagent/bindingmanager/impl/ApplicationPackageImpl.class</include>
  |                 <include>org/epo/product/jboss/nodeagent/bindingmanager/impl/CloneImpl.class</include>
  |               </includes>
  |             </configuration>
  |             <goals>
  |               <goal>compile</goal>
  |             </goals>
  |           </execution>
  |         </executions>
  |         </plugin>

Can you tell me what I am doing wrong here?

Thanks,
Marcel

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

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



More information about the jboss-user mailing list