ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Performance Analysis of J2EE Applications Using AOP Techniques
Subject:   How to integrate Aspectswerkz in Tomcat 5
Date:   2007-05-19 06:16:06
From:   viralk
Hello


Sub : How to integrate Aspects in Tomcat 5


I have done following setting in catalina.bat file in Tomcat/bin.


============================================
...
@REM ** Begin of AspectWerkz configuration **
@REM ** Adapt ASPECTWERKZ_HOME **
set ASPECTWERKZ_HOME=C:\aw\aspectwerkz
set _EXECJAVA=%ASPECTWERKZ_HOME%\bin\aspectwerkz.bat
@REM ** we can add some more AspectWerkz option this way:
set JAVA_OPTS=%JAVA_OPTS% -Daspectwerkz.transform.details=false
...
@REM ** End of AspectWerkz configuration **


rem Execute Java with the applicable properties
if not "%JPDA%" == "" goto doJpda
...
============================================


Then I tried to startup.bat file.


But it is giving ERORO like given as follows


C:\j2sdk1.4.2_14\jre\bin\java -Xrunjdwp:transport=dt_socket,suspend=y,address=93
00,server=y -Xdebug -Xbootclasspath/p:"C:\aw\aspectwerkz-2.0\lib\aspectwerkz-cor
e-2.0.jar" -Daspectwerkz.home="C:\aw\aspectwerkz-2.0" -Daspectwerkz.transform.de
tails=false -Djava.endorsed.dirs=C:\aw\Tomcat 5.0\common\endorsed -Dcatalina.bas
e=C:\aw\Tomcat 5.0 -Dcatalina.home=C:\aw\Tomcat 5.0 -Djava.io.tmpdir=C:\aw\Tomca
t 5.0\temp -cp "C:\j2sdk1.4.2_14\lib\tools.jar;C:\aw\Tomcat 5.0\bin\bootstrap.j
ar;C:\aw\aspectwerkz-2.0\lib\aspectwerkz-extensions-2.0.jar;C:\aw\aspectwerkz-2.
0\lib\aspectwerkz-2.0.jar;C:\aw\aspectwerkz-2.0\lib\aspectwerkz-jdk14-2.0.jar;C:
\aw\aspectwerkz-2.0\lib\dom4j-1.4.jar;C:\aw\aspectwerkz-2.0\lib\qdox-1.4.jar;C:\
aw\aspectwerkz-2.0\lib\concurrent-1.3.1.jar;C:\aw\aspectwerkz-2.0\lib\trove-1.0.
2.jar;C:\aw\aspectwerkz-2.0\lib\jrexx-1.1.1.jar;C:\j2sdk1.4.2_14\lib\tools.jar;C
:\aw\Tomcat 5.0\bin\bootstrap.jar" org.apache.catalina.startup.Bootstrap start
java.lang.NoClassDefFoundError: 5/0\common\endorsed



Plz can anybody help me to solve this Error very very argent.
plz plz do ur well....



But if i don't include thst setting then it is running fine.



Regards,
Viral Kalaria