Re: [aspectwerkz-user] Integarting ASPECTWERKZ 2.0 Offline weaving with Weblogic Portal Application
Alexandre Vasseur <[email protected]> Fri, 27 May 2005 10:49:59 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
some notes: AspectWerkzC can only weave folders, jars, or zips that would we valid to have in a classpath entry. So not ear file though they look like zip (since you don't put ear file in a classpath entry, they don't contain classes or root package on their root folder right ?) Note that AspectWerkzC will deal with AspectWerkz, so this remark is confusing : " it does not add aspectj related code to any of the classes." Online mode does work with EJB weaving. There has been several samples provided on this list. I suggest you try having more details using http://aspectwerkz.codehaus.org/faq.html#migration_selfservice (top of the page " What are the common steps to perform when I have some troubles?" section) Alex On 5/25/05, Raman Mishra <[email protected]> wrote: > 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 > >