Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Exporting "Deployable plugin with AspectJ support" yields plugin with aspects missing
Exporting "Deployable plugin with AspectJ support" yields plugin with aspects missing [message #595466] Thu, 30 November 2006 13:24
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I am having a major problem generating a "Deployable Plug-in with
AspectJ support":

I have an eclipse plugin project (it also has the "AspectJ nature") that
contains about 10 aspects, i.e. .aj files. The project also has a lib
directory which contains about 12 .jar files that are used by my
application. Into 3 of these 12 .jar files aspects are woven by the
above aspects (these .jar files are therefore also listed on the AspectJ
inpath tab).

Everything compiles fine and I can start and execute the plugin using an
eclipse runtime workbench, which also works perfectly.

Now I want to bundle things up into some easy deployable form. So I
choose File => Export... => Deployable Plug-in with AspectJ support.
I select the plugin, enter the name of an archive file (say:
myplugin.zip) and hit "Finish".

Obviously at this point the files in the project are not simply packed
up into the target .zip file, but an entire rebuild takes place first.
At the end the .zip file is generated and - as I checked - contains all
files (including the .jar files in the lib directory).

But when I then take that generated .zip and unpack it into the target
system's eclipse directory and then start eclipse and execute the plugin
I get runtime errors like:
---------------------
java.lang.NoSuchMethodError: myPlugin/MyClass.markChanged()V
at
myPlugin/observability.ObservableAspect.ajc$interMethodDispa tch1$myPlugin_observability_ObservableAspect$myPlugin_MyClas s$markChanged(ObservableAspect.aj)
at
myPlugin.observability.ObservableAspect.ajc$afterReturning$m yPlugin_observability_ObservableAspect$2$4511a4b8(Observable Aspect.aj:76)
at ...
---------------------

markChanged() is one of these methods that should have been woven into
the 3 mentioned jars in lib. So, apparently, these methods are now
lacking and have NOT been woven into the .jar files by that last build
triggered by the export.

What am I missing or doing wrong here? Any ideas? Workarounds?

Michael

Ps.: This is on eclipse 3.2.1 and with the latest AJDT 1.4.1.
Previous Topic:AJDT New Feature: Select and copy from the Cross References view
Next Topic:AJDT 1.4.1 for Eclipse 3.2 released (and more!)
Goto Forum:
  


Current Time: Fri Apr 19 08:21:56 GMT 2024

Powered by FUDForum. Page generated in 0.02074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top