I just wanted to test the deployment of a simple JBoss AOP aspect program to work with a simple Servlet in JBoss Server.
I downloaded "jboss-5.1.0.GA-jdk6.zip", and tested it on Ubuntu 10.10 and cygwin.
Here is what I did refereeing the tutorial, but I couldn't find any appropriate solution to solve the problem with which I faced in this forum.
# vi $JBOSS_HOME/server/default/conf/bootstrap/aop.xml
# vi $JBOSS_HOME/bin/run.sh
JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS -javaagent:pluggable-instrumentor.jar"
# cp $JBOSS_HOME/server/default/deployers/jboss-aop-jboss5.deployer/pluggable-instrumentor.jar .
# jar cvf servlet-example.war -C servlet-example WEB-INF
# jar cvf aspect.aop -C aspect com -C 2aspect META-INF
# place aspect.aop and servlet-example.war in $JBOSS_HOME/server/default/deploy/
Attached is all materials, and I added here the code snipets.