| 
| Exposing own extension in plugin fails in runtime [message #297595] | Tue, 17 January 2006 10:31  |  | 
| Eclipse User  |  |  |  |  | Hi all, I am experiecing a problem when I have a plugin exposing an extension
 point. In debug mode (PDE) it all works very fine. When exported and
 installed it seemingly doesn't work as well.. anyhow, the error I get
 indicates that my plug exteding the extension point cannot load a class
 within its own plugin (!), from the same package.
 
 What am I doing wrong here? What is missing??
 
 The classes are all .class files at the root of the JR-file (no JAR within
 a JAR). The plugin also has a preference page, it has no problem
 instantiating and creating it, it is visible in Window->Preferences
 dialogue.
 
 Thanks in advance,
 
 Robert
 |  |  |  | 
|  | 
|  | 
|  | 
| 
| Re: Exposing own extension in plugin fails in runtime [message #297613 is a reply to message #297608] | Tue, 17 January 2006 12:36   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: robert.varttinen.sonyericsson.com 
 See my answers in-line:
 
 Paul Webster wrote:
 
 > So that was useful information, but we need a little more ... what's
 > your usecase?
 
 > ex: com.xxxxxx.bronzefish2 defines the extension point?
 
 Yes, it defiens the extnsion point.
 
 > and it's
 > activator is the one walking through the config elements?  it
 > instantiates the executable extension and tries to do something with it
 > (and that's when you get the ClassNotFound)?  Does anything in your
 > extension point try and use loadClass(*) or forName(*), or does it just
 > work by instantiating the executable extension?
 
 Yes, the activator walks (for-loop) through each extension it finds, one
 in my test as of now. The ClassNotFound seems to come from the other,
 extending plugin.
 The activator, what I think it is, uses createExecutableExtension(...) on
 the element it found. I basically followed an example on how to create
 extension points.
 
 No, there is no loadClass(..) or forName(..) in my code.
 
 > And then com.xxxxxx.bronzefish.baseline actually implements the 2
 > extensions (preference page and
 > com.xxxxxx.bronzefish2.BronzeFishBaseLineUpdate).  Or is this the plugin
 > that you get the ClassNotFound in?
 
 Yes, so it seems. I am currently trying to get the exceptiom stack trace
 to the log ... but that seems a bit tricky.
 
 > Later,
 > PW
 
 Thanks,
 
 //Robert
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.07714 seconds