1 Reply Latest reply on Nov 5, 2003 6:42 AM by anonym124

    JBOSS AOP on Linux VM

    russellneufeld

      Hi all,
      I'm trying to get standalone AOP (DR2) working on a JVM on Linux. Haven't had much luck. I'm getting the same class not found exceptions that people have been reporting in earlier posts. Here is my environment:

      $CLASSPATH contains javassist.jar, jboss-aop.jar, and jboss-common.jar

      I compiled the oreilly examples which come the zip file using javac (both with and without the -g option). When I try to run on Sun JDK 1.4.2 I get the following output:

      $ java -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader POJO
      Exception in thread "main" java.lang.NoClassDefFoundError: POJO

      When I try to run on the IBM JDK 1.4.1 I get the following output:

      $ java -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader POJO
      The java class is not found: POJO

      Of course if I run without overriding the classloader the program runs on either VM just fine:

      $java POJO
      Hello World!

      Any thoughts? Am I doing anything wrong? I'd love to use AOP on this project and I've convinced a bunch of people at my company that it's the right technology to use. Just can't get it running.

      Thanks.