3 Replies Latest reply on Oct 13, 2005 5:03 AM by Kabir Khan

    Help!! How to run the example "MortgageCalculator" on JBoss4

    Fei Ye Newbie

      my environment is:
      jdk 1.4.2
      jboss aop 1.3.4
      jboss 4.0.2

      I've read the documents of jboss-aop and jboss4guide, according to them, what I've done are as follow:

      1. jboss-aop.deployer
      delete <jboss_4.0.2>/server/default/deploy/jboss-aop.deployer
      copy jboss-aop.deployer?jboss-aop?jboss as
      modify jboss-aop.deployer/META-INF/jboss-service.xml,set EnableLoadtimeWeaving true.

      2. create classloader(this step seems worked well)
      I've tried this generated classloader by command line, and it worked.

      3. copy jdk14-pluggable-instrumentor.jar to <jboss_4.0.2>/bin/

      4. modify <jboss_4.0.2>/bin/run.bat
      set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -Xbootclasspath/p:jboss-classloader-transformer.jar:jdk14-pluggable-instrumentor.jar

      5. copy Mortgage Calculator Application's .war & .aop files to <jboss_4.0.2>/server/default/deploy/

      then I run the jboss application server,
      I can see html generated by the application,
      but the interceptor didn't work.

      How to fix the problem?
      Is there any step not correct or missed?

      Ask for help, urgent!!
      Looking forward for your advices, thanks in advance.