[aspectwerkz-user] RE: aop.xml not getting recognised

<[email protected]> Thu, 14 Feb 2008 18:40:19 +0530
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
------_=_NextPart_001_01C86F0A.FBB042F2
Content-Type: text/plain;
	charset="iso-8859-1"
content-transfer-encoding: quoted-printable

 
 


Hello,
 
In the below scenario,  Once I run the client, the aop.xml gets recognsied b=
y -Daspectwerkz.definition.file=3Dpath/aop.xml but the application is not ge=
tting pointcut.  Any clues why ?
Thanks and Regards,
Lalithamba.

________________________________

From: [email protected] [mailto:lalithamba.vishwanathaiah@=
wipro.com]
Sent: Wed 13-Feb-08 8:14 PM
To: [email protected]; [email protected]
Subject: aop.xml not getting recognised


Hi,
 
I am using Aspectwerkz to pointcut a standalone CORBA application which is r=
unning under naming service TAO in LINUX.
 
I have the following files :
 
Hello.idl
HelloClient.java
HelloServer.java
 
 
Now I execute the idl file using idlj utility of Java as follows : 
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
idlj -fall Hello.idl (this creates the stubs)
 
Compile the Client and Server file : 
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
javac HelloClient.java HelloApp/*.java
javac HelloServer.java HelloApp/*.java
 
set ASPECTWERKZ_HOME=3DD:\aspectwerkz-2.0

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 
Now the naming service is running on linux.
 
I run HelloServer as follows : 
 
java -Xbootclasspath/p:.:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/=
bin/jacorb.jar:/opt/ALNA/bin/logkit-1.2.jar: -DORBInitRef.NameService=3Dcorb=
aloc:iiop:10.116.69.123:23000/NameService HelloServer
 
This shows : HelloServer ready and waiting ...
 
Next I am running HelloClient using aspectwerkz as :
 
/opt/aspectwerkz/bin/aspectwerkz -javaagent:/opt/eprofiler/Hello/eProfiler.j=
ar -cp /opt/eprofiler/Hello/eProfiler.jar:/opt/eprofiler/Hello/aopfile.jar -=
Xbootclasspath/p:.:/opt/eprofiler/Hello/aopfile.jar:/opt/eprofiler/Hello:/op=
t/eprofiler/Hello/eProfiler.jar:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/op=
t/ALNA/bin/jacorb.jar:/opt/ALNA/bin/logkit-1.2.jar:/opt/aspectwerkz/lib/aspe=
ctwerkz-core-2.0.jar:/opt/aspectwerkz/lib/aspectwerkz-2.0.jar: -DORBInitRef.=
NameService=3Dcorbaloc:iiop:10.116.69.123:23000/NameService HelloClient
 
After I run this, the application is not getting cross-cut.  Only the SOP of=
 the program is getting printed.  My thought is aop.xml is not getting recog=
nised.
aop.xml is present in META-INF directory and also I have placed it in aopfil=
e.jar which just has META-INF directory with aop.xml file in it.  
 
Any help in recognising the aop.xml is appreciated.
 
Thanks in advance.

 
 
 
 
Thanks and Regards,
Lalithamba.


The information contained in this electronic message and any attachments to=
 this message are intended for the exclusive use of the addressee(s) and may=
 contain proprietary, confidential or privileged information. If you are not=
 the intended recipient, you should not disseminate, distribute or copy this=
 e-mail. Please notify the sender immediately and destroy all copies of this=
 message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should=
 check this email and any attachments for the presence of viruses. The compa=
ny accepts no liability for any damage caused by any virus transmitted by th=
is email.

www.wipro.com


------_=_NextPart_001_01C86F0A.FBB042F2
Content-Type: text/html;
	charset="iso-8859-1"
content-transfer-encoding: quoted-printable

<HTML dir=3Dltr><HEAD><TITLE>Re: [aspectwerkz-user] AOP advice execution seq=
uence</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=
=0A=
<META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText96295 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DI=
V>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DI=
V></DIV>=0A=
<DIV id=3DidSignature69711 dir=3Dltr><PRE>=0A=
<BR></PRE></DIV>=0A=
<DIV dir=3Dltr>=0A=
<DIV id=3DidOWAReplyText80253 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#000000 size=3D2>Hello,</F=
ONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>In the below scenario,&nb=
sp; Once I run the client, the aop.xml gets recognsied by -Daspectwerkz.defi=
nition.file=3Dpath/aop.xml but the application is not getting <STRONG><FONT=
 color=3D#0000ff>pointcut</FONT></STRONG>.&nbsp; Any clues why ?</FONT></DIV=
></DIV>=0A=
<DIV id=3DidSignature32179 dir=3Dltr><PRE><FONT size=3D2>Thanks and Regards,=
=0A=
Lalithamba.</FONT>=0A=
</PRE></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> [email protected]=
m [mailto:[email protected]]<BR><B>Sent:</B> Wed 13-Feb-08=
 8:14 PM<BR><B>To:</B> [email protected]; [email protected]<BR>=
<B>Subject:</B> aop.xml not getting recognised<BR></FONT><BR></DIV>=0A=
<DIV dir=3Dltr>=0A=
<DIV id=3DidOWAReplyText71654 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#000000 size=3D2>Hi,</FONT=
></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>I am using Aspectwerkz to=
 pointcut a standalone&nbsp;CORBA application which is running under naming=
 service TAO in LINUX.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>I have the following file=
s :</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Hello.idl</FONT></DIV>=
=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>HelloClient.java</FONT></=
DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>HelloServer.java</FONT></=
DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Now I execute the idl fil=
e using idlj utility of Java as follows : </FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>idlj -fall Hello.idl (thi=
s creates the stubs)</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Compile the Client and Se=
rver file : </FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>javac HelloClient.java H=
elloApp/*.java<BR>javac HelloServer.java HelloApp/*.java</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>set ASPECTWERKZ_HOME=3DD:=
\aspectwerkz-2.0<BR></FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Now the naming service is=
 running on linux.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>I run <FONT color=3D#0000=
ff>HelloServer</FONT> as follows : </FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>java -Xbootclasspath/p:.:=
/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/bin/jacorb.jar:/opt/ALNA/=
bin/logkit-1.2.jar: -DORBInitRef.NameService=3Dcorbaloc:iiop:10.116.69.123:2=
3000/NameService HelloServer</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#0000ff size=3D2>This show=
s : HelloServer ready and waiting ...</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Next I am running <FONT c=
olor=3D#0000ff>HelloClient</FONT> using aspectwerkz as :</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>/opt/aspectwerkz/bin/aspe=
ctwerkz -javaagent:/opt/eprofiler/Hello/eProfiler.jar -cp /opt/eprofiler/Hel=
lo/eProfiler.jar:/opt/eprofiler/Hello/aopfile.jar -Xbootclasspath/p:.:/opt/e=
profiler/Hello/aopfile.jar:/opt/eprofiler/Hello:/opt/eprofiler/Hello/eProfil=
er.jar:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/bin/jacorb.jar:/op=
t/ALNA/bin/logkit-1.2.jar:/opt/aspectwerkz/lib/aspectwerkz-core-2.0.jar:/opt=
/aspectwerkz/lib/aspectwerkz-2.0.jar: -DORBInitRef.NameService=3Dcorbaloc:ii=
op:10.116.69.123:23000/NameService HelloClient</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>After I run this, the app=
lication is not getting cross-cut.&nbsp; Only the SOP of the program is gett=
ing printed.&nbsp; My thought is aop.xml is not getting recognised.</FONT></=
DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>aop.xml is present in MET=
A-INF directory and also I have placed it in aopfile.jar which&nbsp;just&nbs=
p;has META-INF&nbsp;directory with aop.xml file in it.&nbsp; </FONT></DIV>=
=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Any help in recognising t=
he aop.xml is appreciated.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Thanks in advance.</FONT>=
</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New"><BR><FONT size=3D2></FONT></FONT>&=
nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#000000 size=3D2></FONT>&n=
bsp;</DIV></DIV>=0A=
<DIV id=3DidSignature84402 dir=3Dltr><PRE><FONT size=3D2>Thanks and Regards,=
=0A=
Lalithamba.=0A=
</FONT></PRE></DIV></DIV></DIV><p>The information contained in this electron=
ic message and any attachments to this message are intended for the exclusiv=
e use of the addressee(s) and may contain proprietary, confidential or privi=
leged information. If you are not the intended recipient, you should not dis=
seminate, distribute or copy this e-mail. Please notify the sender immediate=
ly and destroy all copies of this message and any attachments.</p> 

<p>WARNING: Computer viruses can be transmitted via email. The recipient sho=
uld check this email and any attachments for the presence of viruses. The co=
mpany accepts no liability for any damage caused by any virus transmitted by=
 this email.</p>

<p>www.wipro.com</p>
</BODY></HTML>
------_=_NextPart_001_01C86F0A.FBB042F2--