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

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

    sybil

      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.

        • 1. Re: Help!! How to run the example
          kabirkhan

          It looks like you are using windows, in which case you should use a colon ; separating your entries:

          -Xbootclasspath/p:jboss-classloader-transformer.jar;jdk14-pluggable-instrumentor.jar

          If that doesn't fix it, there are quite a few threads on this already. Do a search for "Xbootclasspath", but make sure you use the "forum search" rather than the "site search", as that will return more results

          • 2. Re: Help!! How to run the example
            sybil

            on windows:

            -Xbootclasspath/p:jboss-classloader-transformer.jar;jdk14-pluggable-instrumentor.jar

            ; doesn't work.

            -Xbootclasspath/p:jboss-classloader-transformer.jar:jdk14-pluggable-instrumentor.jar

            : worked.

            but the problem still here.

            • 3. Re: Help!! How to run the example
              kabirkhan

              Please explain "worked" vs "doesn't work"