[aspectwerkz-user] aspectwerkz not recognizing properties file

<[email protected]> Tue, 8 May 2007 08:35:53 +0530
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
------_=_NextPart_001_01C7911D.F02883FB
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi,
=20
1. We have a standalone swing application which refers to the properties=
 file and the application picks up the properties file when executed and is=
 successful.
=20
2.  We have developed a profiling application which uses Aspectwerkz for=
 online weaving (join point) of the target application (application in step=
 1).
3.  The target application fails to pick the property file while executing=
 the standalone application when we perform step 2.
4.  we have followed the following steps for online weaving :
=20
snippet of build.xml:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Here eprofiler.jar is the profiling application which uses aspectwerkz. =
 other jars are application specific dependent jars.
main.class - target application main class. =20
property file is referred in the application using the full name eg=
 "cls.properties".
lib2.dir - refers to application specific library location and we have=
 included all the jars .
=20
<!-- setting properties -->
 <property name=3D"full.aw.exe" value=3D"${aw.home}/bin/${aw.exe}" />
 <property name=3D"aop" value=3D"${aop.file.dir}/${aop.file}" />=20
 <property name=3D"online.arg.line" value=
=3D"-javaagent:${eprofiler.dir}/eProfiler.jar =
 -Daspectwerkz.definition.file=3D${aop} -cp=
 ${classes1.dir};${lib2.dir}/Base.jar;${=
 lib2.dir}/BaseIEntities.jar;${lib2.dir}/BaseService.jar;${lib2.dir}/Errh.j=
ar;${lib2.dir}/ErrhIEntities.jar;${lib2.dir}/log4j.jar;${lib2.dir}/Ngl.jar;=
${lib2.dir}/NglIEntities.jar;${lib2.dir}/Sac.jar;${lib2.dir}/SacIEntities.j=
ar;${=
 lib2.dir}/VPath.jar;${build.dir};${lib.dir};${lib1.dir}/aspectwerkz-core-2=
.0.jar;${lib1.dir}/aspectwerkz-2.0.jar;${eprofiler.dir}/eprofiler.jar;${obj=
t.label};${classes.dir}; ${main.class}"/>=20

<!-- run -->
<target name=3D"online">
  <echo message=3D"Executing ${full.aw.exe} from directory=
 '${aop.file.dir}' with args '${online.arg.line}'" />=20
  <exec dir=3D"${aop.file.dir}" executable=3D"${full.aw.exe}">
   <arg line=3D"${online.arg.line}" />
  </exec>
 </target>
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
any help is appreciated.
=20
=20
Thanks and Regards,
Lalithamba.

=20

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.=20

WARNING: Computer viruses can be transmitted via email. The recipient=
 should check this email and any attachments for the presence of viruses.=
 The company accepts no liability for any damage caused by any virus=
 transmitted by this email.
=20
www.wipro.com
------_=_NextPart_001_01C7911D.F02883FB
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=
=3Dltr><HEAD><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html;=
 charset=3Diso-8859-1"></HEAD><BODY>
<DIV id=3DidOWAReplyText98713 dir=3Dltr>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>1. We have a standalone swing=
 application=20
which refers to the properties file and the application picks up the=
 properties=20
file when executed and is successful.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>2.&nbsp; We have developed a=
 profiling=20
application which uses Aspectwerkz for online weaving (join point) of the=
 target=20
application (application in step 1).</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>3.&nbsp; <FONT color=
=3D#ff0000>The target=20
application fails to pick the property file while executing the standalone=
=20
application when we perform step 2</FONT>.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>4.&nbsp; we have followed the=
 following=20
steps for online weaving :</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>snippet of=
 build.xml:</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Here eprofiler.jar is the=
 profiling=20
application which uses aspectwerkz.&nbsp; other jars are application=
 specific=20
dependent jars.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT color=
=3D#0000ff>main.class</FONT> -=20
target application main class.&nbsp; </FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT color=3D#0000ff>property=
 file</FONT> is=20
referred in the application using the full name eg=20
"cls.properties".</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT color=
=3D#0000ff>lib2.dir</FONT> -=20
refers to application specific library location and we have included all=
 the=20
jars .</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&lt;!-- setting properties=20
--&gt;</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&nbsp;&lt;property name=
=3D"full.aw.exe"=20
value=3D"${aw.home}/bin/${aw.exe}" /&gt;<BR>&nbsp;&lt;property name=3D"aop"=
=20
value=3D"${aop.file.dir}/${aop.file}" /&gt; </FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&nbsp;&lt;property name=
=3D"online.arg.line"=20
value=3D"-javaagent:${eprofiler.dir}/eProfiler.jar&nbsp;=20
-Daspectwerkz.definition.file=3D${aop} -cp=
 ${classes1.dir};${lib2.dir}/Base.jar;${=20
lib2.dir}/BaseIEntities.jar;${lib2.dir}/BaseService.jar;${lib2.dir}/Errh.ja=
r;${lib2.dir}/ErrhIEntities.jar;${lib2.dir}/log4j.jar;${lib2.dir}/Ngl.jar;$=
{lib2.dir}/NglIEntities.jar;${lib2.dir}/Sac.jar;${lib2.dir}/SacIEntities.ja=
r;${=20
lib2.dir}/VPath.jar;${build.dir};${lib.dir};${lib1.dir}/aspectwerkz-core-2.=
0.jar;${lib1.dir}/aspectwerkz-2.0.jar;${eprofiler.dir}/eprofiler.jar;${objt=
.label};${classes.dir};=20
${main.class}"/&gt; <BR></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&lt;!-- run --&gt;</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&lt;target=20
name=3D"online"&gt;<BR>&nbsp;&nbsp;&lt;echo message=3D"Executing=
 ${full.aw.exe} from=20
directory '${aop.file.dir}' with args '${online.arg.line}'" /&gt;=20
<BR>&nbsp;&nbsp;&lt;exec dir=3D"${aop.file.dir}"=20
executable=3D"${full.aw.exe}"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;arg=20
line=3D"${online.arg.line}"=20
/&gt;<BR>&nbsp;&nbsp;&lt;/exec&gt;<BR>&nbsp;&lt;/target&gt;</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>any help is=
 appreciated.</FONT></DIV></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=
=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><PRE>Thanks and Regards,
Lalithamba.
</PRE></DIV></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=
=3D2></FONT>&nbsp;</DIV></DIV>
<DIV id=3DidSignature3880 dir=3Dltr><PRE>
Thanks and Regards,
Lalithamba.
</PRE></DIV></BODY></HTML>
<table><tr><td bgcolor=3D#ffffff><font color=3D#000000><br>
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. <br>
<br>
WARNING: Computer viruses can be transmitted via email. The recipient=
 should check this email and any attachments for the presence of viruses.=
 The company accepts no liability for any damage caused by any virus=
 transmitted by this email.<br>
 <br>
www.wipro.com<br>
</font></td></tr></table>
------_=_NextPart_001_01C7911D.F02883FB--