Aspect-Oriented Programming and JBoss
Subject:   the example does'nt execute
Date:   2003-10-08 00:17:56
From:   anonymous2
Hi there!

Thank you for the article, it's my first step in AOP. But I have one little problem: the code provided won't run.
I have tried it over the command prompt and by creating a project.
I have added the following line to my java command "-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader" and also added the three jars javassist.jar, jboss-aop.jar and jboss-common.jar to my classpath, but the program exits with
"java.lang.NoClassDefFoundError: POJO
Exception in thread "main" "

What am I making wrong? I would really like to see JBoss AOP working!

Thank you very much for your help!

Peter Götz

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • the example does'nt execute
    2003-10-08 05:36:29  anonymous2 [View]

    The example code is in the DR2 distribution just in case you are cutting and pasting.

    did you add "." to your classpath?
    • the example does'nt execute
      2003-10-09 03:17:54  anonymous2 [View]


      I got it working. Everything was fine, but I had to add the trove.jar library to the classpath. That was not mentioned in the article. But the error only occured at runtime, compilation was fine without the lib. Does anybody know why?
      And another question: Is it possible to define excludes in the class parameter of the interceptor-pointcut tag? I tried a bit with regular expressions, but didn't get a running solution. I would like to add a whole package to the interceptor-pointcut, but exclude one class / subpackage.
      Thanks again for any help!!

      • the example does'nt execute
        2003-10-20 00:54:35  anonymous2 [View]

        You're right. I had the exact same problem. Thanks for the tip. It works fine now.

        lates, Mike N. Christoff
        • the example does'nt execute
          2003-10-22 03:47:14  anonymous2 [View]

          thanks buddy..i too had the same problem ..but got it right at the end(trove.jar to be added in classpath).