[aspectwerkz-user] Integarting ASPECTWERKZ 2.0 Offline weaving with Weblogic Portal Application

Raman Mishra <[email protected]> Wed, 25 May 2005 19:49:59 +0800
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
Hi,
 we have created application ear using weblogic workshop. We want to apply 
aspect on this ear using the below ant script.
  
<taskdef name="awc"
classname="org.codehaus.aspectwerkz.compiler.AspectWerkzCTask"
classpathref="aw.class.path"/>

<target name="applyAspect">
<awc
verbose="true"
definition="${ASPECTWERKZ_HOME}/examples/aop.xml"
classpath="${class.path}">

<target path="C:/BEASP4/user_projects/applications/TestAppl/TestAppl.ear"/>
</awc>
</target>
Build runs successfully but it does not add aspectj related code to any of 
the classes.
 build output
   But if we apply this on individual jars then it works fine.
 Can we use this ant task or aspectwerkz command line utility to apply 
aspect on the ears, if not what other options to apply aspect on ear file. 
 And another problem is when we tried to use aspectwerkz online weaving for 
the ejb project. But it's giving exception 
  
Unable to deploy EJB: ShoppingCartEJBProject.jar from 
ShoppingCartEJBProject.jar
:
Compiler failed executable.exec

at weblogic.ejb20.ejbc.EJBCompiler.doCompile(Ljava.util.Collection;Lwebl
ogic.utils.jars.VirtualJarFile;)V(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(Lweblogic.utils.classloade
rs.GenericClassLoader
;Lweblogic.management.configuration.EJBComponentMBean;Lwebl
ogic.management.descriptors.toplevel.EJBDescriptorMBean
;Lweblogic.utils.jars.Vir
tualJarFile;Lweblogic.j2ee.validation.ModuleValidationInfo;Lweblogic.ejb20.ejbc.
VersionHelper;Ljava.util.Collection;)V(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(Lweblogic.utils.classloade
rs.GenericClassLoader
;Lweblogic.management.configuration.EJBComponentMBean;Lwebl
ogic.utils.jars.VirtualJarFile
;Lweblogic.ejb20.ejbc.VersionHelper;Ljava.util.Col
lection;)V(EJBCompiler.java:407)

Can we use the aspectwerkz for the ejb modules ?

Thanks

Raman