Problems running equinox weaved with aspectj [message #106466] |
Mon, 17 March 2008 21:27 |
Eclipse User |
|
|
|
Originally posted by: kievgama.hotmail.com
Hello everyone,
I am weaving the equinox framework v3.2.2 with AspectJ. Weaving works
fine, however when I try to run the code I cannot start the framework. The
following happens:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/osgi/framework/log/FrameworkLogEntry
Caused by: java.lang.ClassNotFoundException:
org.eclipse.osgi.framework.log.FrameworkLogEntry
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 java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
That class is inside the jar. I checked it.
I could weave and run with no problems Felix and Knopflerfish
implementations.
I appreciate any help.
Thanks in advance,
Kiev Gama
PS:
I try to answer some possible questions that may clear things out:
Why am I trying to weave equinox code?
R. I need to. It's something I'm doing for my masters research that needs
to be added to OSGi. I've chosen to use AOP instead of changing source
code.
Why am I not using equinox latest version?
R. That version (3.3) uses digitally signed jar. Since weaving bytecodes
would change the hash, that would not work. Maybe later I will try to find
out how (if possible) to turn that verification off.
Why am I not using the Equinox Aspects project?
R. Equinox aspects seems to target AOP in bundles. I need to weave the
framework code.
Thanks in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.03300 seconds