I am also facing the problem in running this example (injboss). Please let me know if u have any luck.
There is one little change which u might have to make if u r using windows, in the run.bat, instead of colon, u need to put semicolon between the name of two jar files.
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME -Xbootclasspath/p:jboss-classloader-transformer.jar:jdk14-plugga
Let me if anything works.
When I try ant deploy-ear-aop I get this in the logs :-
15:49:04,567 INFO [EARDeployer] Init J2EE application: file:/Users/john/Dev-tools/jboss-4.0.2/server/default/deploy/aopexample.ear
15:49:04,640 INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.lib.ExampleValue
15:49:04,648 INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.lib.SimpleInterceptor
15:49:04,651 INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.web.BasicExampleServlet
15:49:04,656 INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.web.EarExampleServlet
15:49:04,673 INFO [AspectDeployer] Deployed AOP: file:/Users/john/Dev-tools/jboss-4.0.2/server/default/tmp/deploy/tmp59995aopexample.ear-contents/aopexamplelib.aop
15:49:04,762 INFO [EjbModule] Deploying ExampleSession
15:49:04,873 INFO [EJBDeployer] Deployed: file:/Users/john/Dev-tools/jboss-4.0.2/server/default/tmp/deploy/tmp59995aopexample.ear-contents/aopexampleejb.jar
15:49:04,897 INFO [TomcatDeployer] deploy, ctxPath=/aopexample, warUrl=file:/Users/john/Dev-tools/jboss-4.0.2/server/default/tmp/deploy/tmp59995aopexample.ear-contents/aopexample.war/
15:49:05,070 INFO [EARDeployer] Started J2EE application: file:/Users/john/Dev-tools/jboss-4.0.2/server/default/deploy/aopexample.ear
15:51:12,366 INFO [STDOUT] **** ExampleValue empty Constructor
15:51:12,368 INFO [STDOUT] **** ExampleValue.getMessage()
15:51:22,452 INFO [STDOUT] **** EarExampleServlet.service()
15:51:22,459 INFO [STDOUT] *** ExampleSessionBean.getValue()
15:51:22,460 INFO [STDOUT] **** ExampleValue String Constructor
15:51:22,461 INFO [STDOUT] **** ExampleValue String Constructor
15:51:22,511 INFO [STDOUT] **** ExampleValue.getMessage()
It seems to look for the aspects in the deployed EAR, but when I run the test JSP, the example interceptor does not get called.
Any help would be appreciated from anyone who has this working.
Did u tried any other ant targets like deploy-ct-war, deploy-ct-war-in-sar, etc.
For me these are working fine, somehow the loadtime aops are not working for me either. So try the compiletime aops (ct) to see if interceptor works.
Tried the compile time options, and these work :-). Thanks for your help. it is very much appreciated. I still need to get the runtime stuff to work for my application, but at least I have something to work on.