[aspectwerkz-user] aop.xml is not recognised in Tomcat 4.6 with JDK 1.3.1 - compile time weaving

<[email protected]> Thu, 16 Aug 2007 17:59:14 +0530
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
------_=_NextPart_001_01C7E001.0E8FEB3A
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi,
=20
The aop.xml is not getting loaded in tomcat 4.6 with jdk 1.3.1.
=20
I compiled the application classes with aop.xml using awc utility.
=20
My application  war has aop.xml both in META-INF and WEB-INF, then aop.xml=
 is recognised successfully.
=20
But if I removed aop.xml from the war file and add path to aop.xml in the=
 startup file (as jar or xml file in -cp option or in the  =
 -Xbootclasspath) as below
=20
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
-----------
set %JAVA_OPTS% =3D %JAVA_OPTS% %JAVA_HOME%\bin\java=
 -Xbootclasspath/p:E:\temp-eprofiler\enhanced.jar;=
 -Daspectwerkz.transform.verbose=3Dfalse -Daspectwerkz.definition.file=
=3DE:\cvs-eprofiler\eProfiler_CVS\eProfiler-BV\compiletime\aopxml.jar =
 -Xbootclasspath/a:%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%BOOT_PA=
TH% -cp=
 "JAVA_HOME/lib/tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%=
ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HO=
ME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;E:\cvs-eprofiler\e=
Profiler_CVS\eProfiler-BV\compiletime\aopxml.jar;%DEPS%" =
 -Daspectwerkz.home=3D"%ASPECTWERKZ_HOME%" %*
=20
                                        OR
=20
=20
set %JAVA_OPTS% =3D %JAVA_OPTS% %JAVA_HOME%\bin\java=
 -Xbootclasspath/p:E:\temp-eprofiler\enhanced.jar;=
 -Daspectwerkz.transform.verbose=3Dfalse -Daspectwerkz.definition.file=
=3DE:\cvs-eprofiler\eProfiler_CVS\eProfiler-BV\compiletime\aop.xml =
 -Xbootclasspath/a:%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%BOOT_PA=
TH% -cp=
 "JAVA_HOME/lib/tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%=
ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HO=
ME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;E:\cvs-eprofiler\e=
Profiler_CVS\eProfiler-BV\compiletime\aop.xml;%DEPS%"  -Daspectwerkz.home=
=3D"%ASPECTWERKZ_HOME%" %*
=20
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
-----------
=20
=20
I am getting java.lang.ExceptionInInitializerError:=
 org.codehaus.aspectwerkz.aspect.management.NoAspectBoundException:=
 NoAspectBound: Could not find AspectDefinition.
=20
Why is the aop.xml not recognised ?
=20
Any help is highly appreciated.
=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_01C7E001.0E8FEB3A
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">
<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR></HEAD>
<BODY>
<DIV id=3DidOWAReplyText70861 dir=3Dltr>
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#000000 size=
=3D2>Hi,</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2><STRONG>The aop.xml is=
 not getting loaded in tomcat 4.6 with jdk 1.3.1.</STRONG></FONT></DIV>
<DIV dir=3Dltr><STRONG><FONT face=3D"Courier New" size=
=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>I compiled the=
 application classes with aop.xml using <STRONG>awc</STRONG>=
 utility.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>My application&nbsp; war=
 has aop.xml both in META-INF and WEB-INF, then aop.xml is recognised=
 successfully.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>But if I removed aop.xml=
 from the war file and add path to aop.xml in the startup file (as jar or=
 xml file&nbsp;in -cp option or in the&nbsp;&nbsp; -Xbootclasspath) as=
 below</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=
=3D2>----------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
----------------</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>set %JAVA_OPTS% =3D=
 %JAVA_OPTS% %JAVA_HOME%\bin\java=
 -Xbootclasspath/p:E:\temp-eprofiler\enhanced.jar;=
 -Daspectwerkz.transform.verbose=3Dfalse <FONT color=
=3D#0000ff>-Daspectwerkz.definition.file=
=3DE:\cvs-eprofiler\eProfiler_CVS\eProfiler-BV\compiletime\<STRONG>aopxml.j=
ar</STRONG></FONT>&nbsp;=
 -Xbootclasspath/a:%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%BOOT_PA=
TH% -cp=
 "JAVA_HOME/lib/tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%=
ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HO=
ME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;<FONT color=
=3D#0000ff>E:\cvs-eprofiler\eProfiler_CVS\eProfiler-BV\compiletime\<STRONG>=
aopxml.jar</STRONG></FONT>;%DEPS%"&nbsp; -Daspectwerkz.home=
=3D"%ASPECTWERKZ_HOME%" %*</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=
=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; <STRONG>OR</STRONG></FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>set %JAVA_OPTS% =3D=
 %JAVA_OPTS% %JAVA_HOME%\bin\java=
 -Xbootclasspath/p:E:\temp-eprofiler\enhanced.jar;=
 -Daspectwerkz.transform.verbose=3Dfalse <FONT color=
=3D#0000ff>-Daspectwerkz.definition.file=
=3DE:\cvs-eprofiler\eProfiler_CVS\eProfiler-BV\compiletime\<STRONG>aop.xml<=
/STRONG></FONT>&nbsp;=
 -Xbootclasspath/a:%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%BOOT_PA=
TH% -cp=
 "JAVA_HOME/lib/tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%=
ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HO=
ME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;<FONT color=
=3D#0000ff>E:\cvs-eprofiler\eProfiler_CVS\eProfiler-BV\compiletime\<STRONG>=
aop.xml</STRONG></FONT>;%DEPS%"&nbsp; -Daspectwerkz.home=
=3D"%ASPECTWERKZ_HOME%" %*</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=
=3D2>----------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
----------------</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>I am getting <FONT color=
=3D#0000ff>java.lang.ExceptionInInitializerError:=
 org.codehaus.aspectwerkz.aspect.management.NoAspectBoundException:=
 NoAspectBound: Could not find AspectDefinition.</FONT></FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#0000ff size=
=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#0000ff size=3D2>Why is=
 the aop.xml not recognised ?</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#0000ff size=
=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#000000 size=3D2>Any help=
 is highly appreciated.</FONT></DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>Thanks and=
 Regards,<BR>Lalithamba.<BR></FONT></DIV></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_01C7E001.0E8FEB3A--