5 Replies Latest reply on Jul 28, 2005 5:13 AM by kabirkhan

    injboss example problem

    milesif

      Hi everybody, (hope this is the right place to post)

      I am using jdk1.5.0_03, Jboss4.0.2 in the ALL configuration where I installed ejb3 beta 1 and jboss portal . Ejb3 work perfect so I decided to make experiments to add my interceptors to my ejb and servlets. To start, I deployed the annotated-injboss example and I got the following results.

      1. when I run "ant deploy-ear-aop" it is all fine, but I get the following message


      Classes have not been aop'ed - run JBoss with enable transformations = true
      [echo] Deploying ear containing a lib.aop file containing the jboss-aop.xml file




      2. I thought it would be ok after restarting the server, but on restart I got the following output:


      INFO [EARDeployer] Init J2EE application: file:/home/francescom/development/jboss-4.0.2/server/all/deploy/aopexample.ear
      INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.lib.ExampleValue
      INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.lib.SimpleInterceptor
      INFO [STDOUT] [debug] Found @InterceptorDef in: org.jboss.injbossaop.lib.SimpleInterceptor
      INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.web.BasicExampleServlet
      INFO [STDOUT] [debug] Looking for aspects in: org.jboss.injbossaop.web.EarExampleServlet
      INFO [AspectDeployer] Deployed AOP: file:/home/francescom/development/jboss-4.0.2/server/all/tmp/deploy/tmp23248aopexample.ear-contents/aopexamplelib.aop
      INFO [EjbModule] Deploying ExampleSession
      INFO [EJBDeployer] Deployed: file:/home/francescom/development/jboss-4.0.2/server/all/tmp/deploy/tmp23248aopexample.ear-contents/aopexampleejb.jar
      INFO [TomcatDeployer] deploy, ctxPath=/aopexample, warUrl=file:/home/francescom/development/jboss-4.0.2/server/all/tmp/deploy/tmp23248aopexample.ear-contents/aopexample.war/
      INFO [EARDeployer] Started J2EE application: file:/home/francescom/development/jboss-4.0.2/server/all/deploy/aopexample.ear


      and when I connected to http://localhost:8080/aopexample/index.jsp I had the following results:



      15:20:10,036 INFO [STDOUT] **** ExampleValue empty Constructor
      15:20:10,043 INFO [STDOUT] **** ExampleValue.getMessage()
      15:20:15,121 INFO [STDOUT] **** EarExampleServlet.service()
      15:20:15,316 INFO [STDOUT] *** ExampleSessionBean.getValue()
      15:20:15,317 INFO [STDOUT] **** ExampleValue String Constructor
      15:20:15,318 INFO [STDOUT] **** ExampleValue String Constructor
      15:20:15,377 INFO [STDOUT] **** ExampleValue.getMessage()


      Neither ejbs nor servlets have been aop'ed. How is this possible if my ejbs3 work correctly (that should mean that transaction and security aspects has been succesfully installed).
      What is it transformations = true ? Where can I set it ?

      Thanks in advance for help
      milesif