[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ PDE export problems

Sorry for my multiple posts...I hope this is my last one :(

aop.xml -->



	
		
		
	


my aspect -->

package aspects;

public aspect Logging {

	public pointcut thisLog() : execution( * *.*(..));
	
	before() : thisLog() {
		System.out.println("CIAO");
	}
}

manifest of this bundle (named "aspetti") -->

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: aspetti
Bundle-SymbolicName: aspetti
Bundle-Version: 1.0.0.qualifier
Export-Package: aspects
Require-Bundle:
org.aspectj.runtime;bundle-version="1.6.11";visibility:=reexport,
 org.aspectj.weaver;bundle-version="1.6.11",
 org.eclipse.equinox.weaving.aspectj;bundle-version="1.0.0",
 org.eclipse.equinox.weaving.caching;bundle-version="1.0.0",
 org.eclipse.aspectj;bundle-version="2.1.2",
 org.eclipse.osgi;bundle-version="3.6.2"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Eclipse-SupplementBundle: argh

The error I see when launching the exported application is always this -->

22-mar-2011 13.35.37 org.aspectj.weaver.tools.Jdk14Trace error
GRAVE: register definition failed
java.lang.RuntimeException: Cannot register non aspect: aspects$Logging ,
aspect
s.Logging
        at
org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeaver.java:2
21)
        at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerAspects
(ClassLoaderWeavingAdaptor.java:466)
        at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerDefinit
ions(ClassLoaderWeavingAdaptor.java:290)
        at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(Clas
sLoaderWeavingAdaptor.java:176)
        at
org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initi
alize(Unknown Source)
        at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.ensureAdapt
orInit(Unknown Source)
        at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.preProcess(
Unknown Source)
        at
org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveClass(Unknow
n Source)
        at
org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(Unknown So
urce)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Clas
spathManager.java:575)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Cl
asspathManager.java:550)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassIm
pl(ClasspathManager.java:481)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_L
ockClassLoader(ClasspathManager.java:469)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:216)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:393)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:469)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.
java:338)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleH
ost.java:232)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(Abs
tractBundle.java:1197)
        at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:174)
        at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutable
Extension(ExtensionRegistry.java:904)
        at
org.eclipse.core.internal.registry.ConfigurationElement.createExecuta
bleExtension(ConfigurationElement.java:243)
        at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createE
xecutableExtension(ConfigurationElementHandle.java:55)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:191)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:369)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
[argh] warning register definition failed -- (RuntimeException) Cannot
register
non aspect: aspects$Logging , aspects.Logging
Cannot register non aspect: aspects$Logging , aspects.Logging
java.lang.RuntimeException: Cannot register non aspect: aspects$Logging ,
aspect
s.Logging
        at
org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeaver.java:2
21)
        at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerAspects
(ClassLoaderWeavingAdaptor.java:466)
        at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerDefinit
ions(ClassLoaderWeavingAdaptor.java:290)
        at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(Clas
sLoaderWeavingAdaptor.java:176)
        at
org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initi
alize(Unknown Source)
        at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.ensureAdapt
orInit(Unknown Source)
        at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.preProcess(
Unknown Source)
        at
org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveClass(Unknow
n Source)
        at
org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(Unknown So
urce)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Clas
spathManager.java:575)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Cl
asspathManager.java:550)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassIm
pl(ClasspathManager.java:481)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_L
ockClassLoader(ClasspathManager.java:469)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:216)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:393)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:469)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
        at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.
java:338)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleH
ost.java:232)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(Abs
tractBundle.java:1197)
        at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:174)
        at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutable
Extension(ExtensionRegistry.java:904)
        at
org.eclipse.core.internal.registry.ConfigurationElement.createExecuta
bleExtension(ConfigurationElement.java:243)
        at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createE
xecutableExtension(ConfigurationElementHandle.java:55)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:191)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:369)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

----

I've tried to delete "Eclipse-SupplementBundle: argh" from "aspetti"
manifest and adding "Require-Bundle: aspetti" in "argh" plugin manifest but
with no success (it gives the same error)...

Thank you for helping...





--
View this message in context: http://aspectj.2085585.n4.nabble.com/AspectJ-PDE-export-problems-tp3387024p3396270.html
Sent from the AspectJ - users mailing list archive at Nabble.com.