0 Replies Latest reply on Oct 20, 2004 4:25 AM by Amose Ma

    ask help for

    Amose Ma Newbie

      I am building JBossAOP examples on Redhat Linux FC2 usingjdk1.4.2. and jboss-aop_1.0RC2

      when I build "compile" the output is:


      $ ant compile
      Buildfile: build.xml

      prepare:

      compile:
      [javac] Compiling 6 source files to /home/mazhao/project/thirdlibs/jboss-aop _1.0RC2/docs/aspect-framework/examples/aspect
      [aopc] [debug] jboss.aop.class.path is NULL
      [aopc] [debug] jboss.aop.search.classpath: 'null' true
      [aopc] [debug] jboss.aop.path: /home/mazhao/project/thirdlibs/jboss-aop_1.0 RC2/docs/aspect-framework/examples/aspect/jboss-aop.xml
      [aopc] jboss.aop.path[0]: /home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/d ocs/aspect-framework/examples/aspect/jboss-aop.xml
      [aopc] [deploying] file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/doc s/aspect-framework/examples/aspect/jboss-aop.xml
      [aopc] Exception in thread "main" java.lang.NoClassDefFoundError: while res olving class: org.jboss.aop.AspectXmlLoader
      [aopc] at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/li b/libgcj.so.5.0.0)
      [aopc] at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
      [aopc] at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so .5.0.0)
      [aopc] at org.jboss.aop.Deployment.deployXmlFile(java.io.File) (Unknown Source)
      [aopc] at org.jboss.aop.Deployment.preconfigThroughSystemProperty() (Unk nown Source)
      [aopc] at org.jboss.aop.Deployment.deploy() (Unknown Source)
      [aopc] at org.jboss.aop.AspectManager.instance() (Unknown Source)
      [aopc] at org.jboss.aop.standalone.Compiler.compile(java.lang.String[]) (Unknown Source)
      [aopc] at org.jboss.aop.standalone.Compiler.main(java.lang.String[]) (Un known Source)
      [aopc] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Element not found in [file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/docs/aspect-fram ework/examples/aspect/, file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/lib /jboss-common.jar, file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/lib/jbos s-aop.jar, file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/lib/concurrent.j ar, file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/lib/javassist.jar, file :/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/lib/qdox.jar, file:/home/mazhao /project/thirdlibs/jboss-aop_1.0RC2/lib/jboss-aspect-library.jar, file:/home/maz hao/project/thirdlibs/jboss-aop_1.0RC2/lib/trove.jar, core:/]
      [aopc] at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/ libgcj.so.5.0.0)
      [aopc] at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/us r/lib/libgcj.so.5.0.0)
      [aopc] at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/u sr/lib/libgcj.so.5.0.0)
      [aopc] at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/ libgcj.so.5.0.0)
      [aopc] at java.lang.Class.forName(java.lang.String, boolean, java.lang.C lassLoader) (/usr/lib/libgcj.so.5.0.0)
      [aopc] at _Jv_BytecodeVerifier.type.compatible(_Jv_BytecodeVerifier.type &, _Jv_BytecodeVerifier) (/usr/lib/libgcj.so.5.0.0)
      [aopc] at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj. so.5.0.0)
      [aopc] at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
      [aopc] at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
      [aopc] at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0 .0)
      [aopc] at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/ libgcj.so.5.0.0)
      [aopc] at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/li b/libgcj.so.5.0.0)
      [aopc] ...8 more

      BUILD FAILED
      file:/home/mazhao/project/thirdlibs/jboss-aop_1.0RC2/docs/aspect-framework/examp les/aspect/build.xml:45: Java returned: 1

      and I check the classpath, It is right!

      Could anybody tell me why?
      3X