Thank you for the tip, but both of your offers are set. MANIFEST.MF ... Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.aspectj.runtime, ...
product configuration ... org.aspectj.runtime ... yet another ideas, thanks Uwe -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Matt Chapman Gesendet: Montag, 12. März 2007 17:52 An: [email protected] Betreff: Re: [aspectj-users] AspectJ will not run in an EclipseRCP application [NVG-MSW51-SPAM-Content] Firstly, your plugins with aspects need to depend on the "org.aspectj.runtime" plugin. This needs to be specified in your MANIFEST.MF file (or plugin.xml). Secondly, check that the "org.aspectj.runtime" plugin is present in your exported eclipse product. Regards, Matt. On 12/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > I'm new in working with AspectJ. I just take it for logging over java > annotation (@Logging). My problem is, the aspects would not run in the RCP > Application, when the libraries are eclipse plugins. Here I become a > NoAspectBoudException. First Time I just look, about the classpath, but the > runtime archive from AspectJ is available. Next I have set a environment > variable ASPECTJRT_LIB (equivalent eclipse), no success. And at the end, I > have seen, that the aspect in plugin archives would not run, but in core > java archives, they will still do their job. The phenomen is, in the eclipse > IDE with AJDT, when I run the RCP application (over product configuration), > all the aspects will be run fine and all loooking good, but when I build a > RCP Application over EXPORT/Eclipse product with AspectJ support and start > the application, I become a NoAspectBoundException. > > Here a Code Snippet: > > public aspect LoggingAspect pertypewithin(@Logging *) > { > ... > static aspect Worker > { > pointcut createLoggingOwner():staticinitialization(@Logging *); > > after():createLoggingOwner() > { > Signature signature = thisJoinPoint.getSignature(); > Class clazz = signature.getDeclaringType(); > LoggingAspect object = LoggingAspect.aspectOf(clazz); > > // read Annotation > Logging at = > (Logging)clazz.getAnnotation(Logging.class); > } > } > } > > The pointcut will not run, only in plugin jars. > > > Has anything ideas, thanks. > Uwe _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users NÜRNBERGER Beteiligungs-Aktiengesellschaft - Aufsichtsrat: Hans-Peter Schmidt (Vorsitzender) Vorstand: Dr. Werner Rupp (Vorsitzender), Dr. Armin Zitzmann (stellv. Vorsitzender), Walter Bockshecker, Henning von der Forst, Dr. Wolf-Rüdiger Knocke, Dr. Hans-Joachim Rauscher Sitz und Registergericht Nürnberg HR B 66 NÜRNBERGER Lebensversicherung AG - Aufsichtsrat: Hans-Peter Schmidt (Vorsitzender) Vorstand: Dr. Werner Rupp (Sprecher), Walter Bockshecker, Henning von der Forst, Dr. Wolf-Rüdiger Knocke, Dr. Hans-Joachim Rauscher, Dr. Armin Zitzmann Sitz und Registergericht Nürnberg HR B 9342 NÜRNBERGER Allgemeine Versicherungs-AG - Aufsichtsrat: Hans-Peter Schmidt (Vorsitzender) Vorstand: Dr. Armin Zitzmann (Sprecher), Walter Bockshecker, Henning von der Forst, Dr. Wolf-Rüdiger Knocke, Dr. Hans-Joachim Rauscher, Dr. Werner Rupp Sitz und Registergericht Nürnberg HR B 774 GARANTA Versicherungs-AG - Aufsichtsrat: Hans-Peter Schmidt (Vorsitzender) Vorstand: Walter Bockshecker, Henning von der Forst, Dr. Wolf-Rüdiger Knocke, Peter Meier, Dr. Hans-Joachim Rauscher, Dr. Werner Rupp, Dr. Armin Zitzmann Sitz und Registergericht Nürnberg HR B 6063 Ust-Id-Nr. DE 13 35 00 778 Bei Rechtsstreitigkeiten in Versicherungsfragen ist die Gesellschaft maßgeblich, die auf dem Versicherungsschein als Vertragspartner angegeben ist. Angaben zu weiteren Konzerngesellschaften der NÜRNBERGER finden Sie unter http://konzerngesellschaften.nuernberger.de Hinweis: Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten Empfänger bestimmt und kann vertrauliche Informationen enthalten. Wenn Sie nicht der Empfänger dieser E-Mail oder dessen Vertreter sind, dann senden Sie bitte die E-Mail an den Absender zurück (Antwort-Funktion). Entfernen Sie bitte danach die Nachricht aus Ihrem System. MSW 5.1 _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
