10 Replies Latest reply on Apr 8, 2005 12:26 AM by Tim McCune

    injboss example doesn't seem to work

    Tim McCune Novice

      Sorry for the newbie question. I've spent the better part of a day playing with this and still haven't had any success. I'm running JBoss 4.0.1 under JDK 1.5 on Linux. I downloaded jboss-aop 1.1.1. I replaced jboss-aop.deployer in my deploy directory with jboss-aop-jdk50.deployer. I placed pluggable-instrumentor.jar in my bin directory and added "-javaagent:pluggable-instrumentor.jar" to run.conf (the docs have a typo, BTW. They specify -javaagent= instead of -javaagent:.) I found the injboss example and ran "ant ear". I then copied aopexample.ear into my deploy directory. So far so good, it looks like it deployed fine. When I go to http://localhost:8080/aopexample, I see the following sent to stdout:

      [STDOUT] **** ExampleValue.getMessage()

      When I hit "Submit Query", I get the following to stdout:

      [STDOUT] **** EarExampleServlet.service()
      [STDOUT] *** ExampleSessionBean.getValue()
      [STDOUT] **** ExampleValue String Constructor
      [STDOUT] **** ExampleValue String Constructor
      [STDOUT] **** ExampleValue.getMessage()

      Shouldn't I be seeing the "<<< Entering SimpleInterceptor:" messages? Any idea what I'm doing wrong?