Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Urgent - Help Load time weaving not working with aspectj-1.5.0M3.jar

Not sure this will solve it, but I don't think you are required to provide the aop.xml in the classpath

:alex |.::the_mindstorm::.|

#: Seshukumar Venkata Adiraju changed the world a bit at a time by saying on  8/29/2005 11:36 AM :#
Hi all,




I'm new to aspectj. Please help me with the following,




Project details,




We a java swing based application (with proper installer and
everything).

Now I want to add some aspects to this code and use load time weaving to
impart additional behaviour.

I'm currently doing a proof of concept to achieve the same.





These are the steps I followed,




1)       I'm using aspectj-1.5.0M3.jar

2)       The run script had the following entry for class path variable,

WORKBENCHPATH =
plugins/InFluxDifferencer.jar;.;patch/WorkbenchPatch.jar;InFluxTools.jar
;jdom.jar;ocl-argo.jar;nsuml.jar;xerces.jar;xml4j.jar;TableLayout.jar;it
ext-0.96.jar;itext-xml-0.96.jar;kawa-1.7.jar;servlet-api.jar;velocity-1.
4.jar;velocity-dep-1.4.jar;







Modified entry reads,

WORKBENCHPATH =
META-INF\aop.xml;aspectjrt.jar;aspectjweaver.jar;aspects.jar;

plugins/InFluxDifferencer.jar;.;patch/WorkbenchPatch.jar;InFluxTools.jar
;jdom.jar;ocl-argo.jar;nsuml.jar;xerces.jar;xml4j.jar;TableLayout.jar;it
ext-0.96.jar;itext-xml-0.96.jar;kawa-1.7.jar;servlet-api.jar;velocity-1.
4.jar;velocity-dep-1.4.jar;




                  I have added/included the following in the class path,

Some aspects (bundled into aspects.jar)

aop.xml

and aspect runtime and weaver jars





3)       My java run script originally read like this,

java -Djava.ext.dirs=./plugins/resources -Xms32m -Xmx256m -Xss600k
-classpath %WORKBENCHPATH% multiuser.client.ui.FrameLogin





                 I have modified this to invoke agent as follows,

java -Daj.weaving.verbose=true   -Djavaagent:aspectjweaver.jar
-Djava.ext.dirs=./plugins/resources -Xms32m -Xmx256m -Xss600k -classpath
%WORKBENCHPATH% multiuser.client.ui.FrameLogin








            When I run the code, the aspects don't get reflected. (not
weaved). I do not get the verbose messages for weaving also...

            There seems to be something wrong here..







Please help.

            What else do I need to do to enable load time weaving of
aspects?





            Note:

            I'm using JRE 1.5 to run the code..




Seshu Kumar Adiraju

Technical Architect

SETLabs

Infosys Technologies Limited






**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


------------------------------------------------------------------------

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top