Hello, I use Felix 1.6.0 and wish to start a bundle coming with a "compiled aspect" (i.e.: no need for "load time weaving") : => does anyone know how to proceed ?
Here are my current install steps : 1) starting Felix with "java -jar bin/felix.jar" [ 0] [Active ] [ 0] System Bundle (1.6.0) [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0) [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0) [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0) 2) install/starting of the runtime AcpectJ bundle [ 72] [Active ] [ 1] AspectJ Runtime (1.6.1) Nota: download source = "http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.aspectj.runtime&version=1.6.1" => is this all-right ? sufficient ? 3) install/starting of my bundle with the following Manifest Manifest-Version: 1.0 Bundle-Vendor: CA Bundle-ActivationPolicy: lazy Bundle-Version: 1.0.0 Bundle-Name: ThirdParties Plug in Bundle-ManifestVersion: 2 Bundle-Activator: com.francetelecom.openappliance.tp.app.example.BundleWithThreads Bundle-SymbolicName: ThirdParties Import-Package: com.aspectj.runtime;version="1.6.1",org.osgi.framework;version="1.4.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 I get the FOLLOWING "NoAspectBoundException" EXCEPTION and would guess that my "com.aspectj.runtime" dependency is not properly installed/started...., no ? org.osgi.framework.BundleException: Activator start error in bundle ThirdParties [73]. at org.apache.felix.framework.Felix.startBundle(Felix.java:1506) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:774) at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:105) at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291) at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException at com.francetelecom.openappliance.tp.app.example.BundleWithThreads.start(BundleWithThreads.java:18) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589) at org.apache.felix.framework.Felix.startBundle(Felix.java:1458) ... 5 more Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.NoAspectBoundException at org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:565) at org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59) at org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1434) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 8 more java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException With thanks ! if you already face such needs / experience... Regards, Chris. -- View this message in context: http://www.nabble.com/How-to-run-AspectJ-under-Felix-1.6.0---%28NoAspectBoundException%29-tp23388648p23388648.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

