How to integrate Aspects in Tomcat 5
am 19.05.2007 15:08:49 von vishal225Hello
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\aspectwe rkz-
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\aspectwerk z-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,
vishal shinde