Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Attempt to activate a disabled plug-in: "x.y.z.plugin"
Attempt to activate a disabled plug-in: "x.y.z.plugin" [message #162932] Thu, 27 November 2003 10:46 Go to next message
Eclipse UserFriend
Originally posted by: pmuse.pmayer.net

Hi everybody,

I am developing a plug-in and so far everything went smoothly. The plugin
runs just fine in the run-time workbench, and I managed to create a feature
and update site for it as well.

Using that update site (locally), I can install the feature and plug-in in
a second installation of Eclipse (3.0 M4, M5) without any problems; the
feature and plugin show up in Help/About as not being disabled and the
installation log shows the "feature-enable" with status "success".

Even the menu items are showing. However, when I try to invoke my code (for
example, open a view) I get the following error (x.y.z being my package
structure)

"Attempt to load class "x.y.z.view" from deactivated plug-in
"x.y.z.plugin"."

The class x.y.z.view, however, is there in the myproduct.jar inside the
plug-in directory, and the jar is referenced inside the plugin.xml:

<runtime>
<library name="myproduct.jar">
<export name="*"/>
</library>
</runtime>

Other plug-ins install AND run just fine. However, I have no idea where
this problem can come from, as the plug-in directory is complete including
the JAR. Where can I disable or enable my plug-in? It is already enabled
(or at least "not disabled") in the product configuration.

Parts of the plug-in are based on Draw2D/GEF (GEF-SDK-I20031118, compatible
with M4) which installed without problems, too.

Could anybody point me to some documentation or tell me what's going on
here - I am completely lost!

Thank your very much!

Phil
Re: Attempt to activate a disabled plug-in: "x.y.z.plugin" [message #163026 is a reply to message #162932] Thu, 27 November 2003 12:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: javibasi.yahoo.es

Hi Philip

I'm not sure if I fully understood your problem, but maybe this helps.

When you have your plugin installed (copied on the eclipse/plugins
directory) and at the same time opened in the workspace as a plugin
project, and you execute the runtime workbench, the installed plugin gets
deactivated to avoid conflicts.

So when you close the run time workbench and go back to your workspace
attempting to execute any feature from the plugin you get the "deactivated
plugin" error.

Hope its helps

Dian Cecht


Philip Mayer wrote:

> Hi everybody,

> I am developing a plug-in and so far everything went smoothly. The plugin
> runs just fine in the run-time workbench, and I managed to create a feature
> and update site for it as well.

> Using that update site (locally), I can install the feature and plug-in in
> a second installation of Eclipse (3.0 M4, M5) without any problems; the
> feature and plugin show up in Help/About as not being disabled and the
> installation log shows the "feature-enable" with status "success".

> Even the menu items are showing. However, when I try to invoke my code (for
> example, open a view) I get the following error (x.y.z being my package
> structure)

> "Attempt to load class "x.y.z.view" from deactivated plug-in
> "x.y.z.plugin"."

> The class x.y.z.view, however, is there in the myproduct.jar inside the
> plug-in directory, and the jar is referenced inside the plugin.xml:

> <runtime>
> <library name="myproduct.jar">
> <export name="*"/>
> </library>
> </runtime>

> Other plug-ins install AND run just fine. However, I have no idea where
> this problem can come from, as the plug-in directory is complete including
> the JAR. Where can I disable or enable my plug-in? It is already enabled
> (or at least "not disabled") in the product configuration.

> Parts of the plug-in are based on Draw2D/GEF (GEF-SDK-I20031118, compatible
> with M4) which installed without problems, too.

> Could anybody point me to some documentation or tell me what's going on
> here - I am completely lost!

> Thank your very much!

> Phil
Re: Attempt to activate a disabled plug-in: "x.y.z.plugin" [message #163379 is a reply to message #163026] Fri, 28 November 2003 12:57 Go to previous message
Eclipse UserFriend
Originally posted by: pmuse.pmayer.net

Hi Dian!

Thanks for your input - the problem however occured in a new Eclipse
installation, not in the development installation nor the spawned runtime
workbench - the plugin just didn't work in an external installation.

I tracked it down now. The plug-in got deactivated only after the
constructor for my plug-in could not be loaded:

org.eclipse.core.internal.boot.DelegatingLoaderException:
org.eclipse.core.runtime.CoreException[2]: java.lang.NoSuchMethodException:
x.y.z.plugin.<init>(org.eclipse.core.runtime.IPluginDescriptor)

Interestingly, the class could be loaded, but not the method. Having
created the plug-in JAR via the feature/export utility, I was sure the
classes were ok (the JARs got created, although SOMETIMES the process
resulted in an error pointing me to a logs.zip, which was completely empty)
- however, they were not: I finally looked into the .class files directly
and there were a lot of UnresolvedCompilationErrors.

I still don't know why it doesn't build the classes correctly (logs.zip is
still empty), but it clearly has something to do with the dependencies
(which are all set :(). We'll see.

If I manually create a plug-in JAR from the output folder of my plugin
workspace directory, everything works just fine :)

So, the matter is resolved - maybe it helps someone else :)

-phil
Previous Topic:Eclipse plus Ant Automation: having our cake and eating it?
Next Topic:Innerclass FileDocumentProvider.FileInfo
Goto Forum:
  


Current Time: Thu May 08 14:32:14 EDT 2025

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

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

Back to the top