Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] RCP Application working through eclipse but not as an exported application

I exported as a AspectJ supported product, I even checked that the .aj file is a .class file in the plugin...

This is my AOP file that is in the META-INF folder...

<?xml version="1.0" encoding="UTF-8"?>
<aspectj>
    <aspects>
        <aspect name="org.plugination.clubadmin.ui.aspects.PropertyChangeSupportAspect"/>
    </aspects>
</aspectj>

And thats the manifest for the plugin with the aspect in...

Manifest-Version: 1.0
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ManifestVersion: 2
Bundle-Name: Club Admin UI Plug-in
Bundle-SymbolicName: org.plugination.clubadmin.ui;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.plugination.clubadmin.ui.UiPlugin
Bundle-Vendor: plugination.org
Eclipse-SupplementBundle: org.plugination.clubadmin.core
Require-Bundle: org.plugination.clubadmin.core,org.eclipse.core.runtim
 e,org.eclipse.ui,org.eclipse.jface.databinding,org.eclipse.ui.forms,o
 rg.plugination.transactionsystem,org.plugination.undosystem,org.plugi
 nation.reportsystem,org.plugination.persistencesystem,com.ibm.icu,org
 .eclipse.core.databinding,org.eclipse.core.databinding.beans,org.plug
 ination.ui,org.apache.log4j,org.aspectj.runtime;visibility:=reexport,
 org.aspectj.weaver;visibility:=reexport,org.eclipse.equinox.weaving.a
 spectj;bundle-version="1.0.0",org.eclipse.equinox.weaving.caching;bun
 dle-version="1.0.0",org.eclipse.equinox.weaving.caching.j9;bundle-ver
 sion="1.0.0",org.eclipse.nebula.widgets.datechooser;bundle-version="1
 .0.0",org.eclipse.nebula.widgets.formattedtext;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.plugination.clubadmin.ui,org.plugination.clubadmin
 .ui.aspects
 
I cannot see what is wrong? it seems like this line:
info AspectJ Weaver Version 1.6.6 built on Wednesday Sep 30, 2009 at 18:55:14 GMT
is the first line I am missing in the log file when running outside eclipse.... any thoughts on why that is not displayed or when it should be displayed?
Does the plugins exported need to be folders rather then .jar files ? (does that matter for the weaver)


On Fri, Nov 27, 2009 at 2:28 AM, Andrew Eisenberg <andrew@xxxxxxxxxxxx> wrote:
It looks like your aspects have not been compiled properly.  How did
you export your product?  Did you use the Export Product with AspectJ
support?

On Thu, Nov 26, 2009 at 11:41 AM, Mikkel Andersen
<mikkel.t.andersen@xxxxxxxxx> wrote:
> I followed this example
> http://www.eclipse.org/equinox/incubator/aspects/equinox-aspects-quick-start.php
> and created my own RCP app with a bundle that need weaving, and a bundle
> that weaves the aspect in, through LTW.
>
> This all works when running inside eclipse, but when I export the product it
> does not work.
>
> Here is the info I get when running inside eclipse
> [org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
> [org.eclipse.equinox.weaving.
> aspectj] info Starting AspectJ weaving service ...
> [org.plugination.clubadmin.ui] info AspectJ Weaver Version 1.6.6 built on
> Wednesday Sep 30, 2009 at 18:55:14 GMT
> [org.plugination.clubadmin.ui] info register aspect
> org.plugination.clubadmin.ui.aspects.PropertyChangeSupportAspect
> [org.eclipse.equinox.weaving.aspectj] info weaving bundle
> 'org.plugination.clubadmin.ui'
> [org.plugination.clubadmin.core] info AspectJ Weaver Version 1.6.6 built on
> Wednesday Sep 30, 2009 at 18:55:14 GMT
> [org.plugination.clubadmin.core] info register aspect
> org.plugination.clubadmin.ui.aspects.PropertyChangeSupportAspect
> [org.eclipse.equinox.weaving.aspectj] info weaving bundle
> 'org.plugination.clubadmin.core'
> ....
>
> And here is it when I run outside eclipse
> [org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
> [org.aspectj.osgi.service.weaving] info Starting AspectJ weaving service ...
> and nothing else...
>
> This is the config.ini I use
>
> osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.equinox.weaving.aspectj@4:start,org.eclipse.core.runtime@start
> osgi.framework.extensions=org.eclipse.equinox.weaving.hook
> aj.weaving.verbose=true
> org.aspectj.weaver.showWeaveInfo=true
> osgi.clean=true
> org.aspectj.osgi.verbose=true
> eclipse.product=org.plugination.clubadmin.ui.product
>
>
> Any help is appriciated I am kindof lost right now... I am using the 1.6.6
> version with eclipse 3.5
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>



--
Venlig Hilsen
Mikkel T. Andersen
Skjoldborgvej 8
7100 Vejle
Hjem: +45 75 83 33 90
Mobil: +45 40 26 79 26

Back to the top