This content has been marked as final.
Show 5 replies
-
1. Re: JBossAOP and static inner class loading
jthedream Apr 16, 2005 2:31 AM (in response to jthedream)For more information, I'm using jdk1.4.2_06-b03.
Also I believe that the class DESedeEngine and its related classes are already in the system classpath. -
2. Re: JBossAOP and static inner class loading
kabirkhan Apr 16, 2005 3:03 PM (in response to jthedream)Can you try one of these classloading strategies?
http://docs.jboss.org/aop/1.1/aspect-framework/reference/en/html/running.html#d0e2784 -
3. Re: JBossAOP and static inner class loading
jthedream Apr 17, 2005 2:41 AM (in response to jthedream)I run the following:
java org.jboss.aop.hook.GenerateInstrumentedClassLoader C:\testaop
Then I got C:\testaop\java\lang\ClassLoader.class
Then I run (with all required already in classpath)java -Xbootclasspath/p:C:\testaop\java\lang\ClassLoader com.bar.MyClass
I still got the same error. However, it seems to me that jdk5+jbossaop for jdk5 solve the error. It works fine as it's expected to be. I'd, at this time, move to jdk5.
Kabir, Thank you very much for your suggestion.
-j -
4. Re: JBossAOP and static inner class loading
kabirkhan Apr 17, 2005 4:45 AM (in response to jthedream)Cool,
However for JDK 1.4 your command line should bejava -Xbootclasspath/p:C:\testaop com.bar.MyClass
i.e. C:\testaop contains the java\lang\ directory structure.
Also, make sure that C:\testaop is not the directory where your main classes are (otherwise they get added to the bootclasspath too) -
5. Re: JBossAOP and static inner class loading
jthedream Apr 17, 2005 1:17 PM (in response to jthedream)Kabir,
I have triedjava -Xbootclasspath/p:C:\testaop com.bar.MyClass
as well. But I got the error msg below:Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/aop/AspectManager at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source)
I believe that jboss-aop.jar is in the classpath. (I set it in both window environment and script environment.) I have no idea why it could not find org/jboss/aop/AspectManager.
Thanks,
-j