Plugin fails to load, red mark on Plugin Registry [message #10817] |
Mon, 07 July 2008 14:42  |
Eclipse User |
|
|
|
I am trying to load my new plugin into an eclipse 3.3.2. Its
contributions to the UI do not show up. The plugin is in the Plugin
Registry view with a red X. Nothing in the error log. Using PDE I can
run the plugin in 3.4.
Anyone have a procedure for debugging this?
Thanks,
John.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #11882 is a reply to message #11848] |
Tue, 08 July 2008 18:45  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
>> Ok I opened a fresh copy of eclipse-jee-europa-winter-win32. Then I
>> used my update site to install my plugin. Everything when smoothly.
>> But in the end the plugin does not work and the osgi console says the
>> same thing, missing required bundle org.eclipse.server.core_1.1.0
>
> The only way I can see this happening is if someone defined a feature
> improperly so when you went to download things, Update Manager thought
> everything was OK but it really wasn't...
hmmm...that 'someone' would be me I guess. I'd say "defined a feature"
was a very fancy name for what I did: I just pushed buttons on the PDE
based on some web site. So....
How can I diagnose the feature?
>
> With Ganymede, you shouldn't run into these issues as p2 is much smarter
> and actually uses dependency data from bundles themselves as part of the
> p2 metadata.
Too bad my users aren't on ganymede...
>
> Cheers,
>
> ~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572085 is a reply to message #10817] |
Mon, 07 July 2008 16:48  |
Eclipse User |
|
|
|
John J Barton wrote:
> Anyone have a procedure for debugging this?
Start Eclipse with -console, and type 'ss'
That should give you a list of bundles.
Find the bundle of interest... type 'start <id>'
Or type 'diag <id>' to see what Equinox says about the issues.
My guess there's a packaging issue on your end.
Cheers,
~ Chris
|
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572137 is a reply to message #11269] |
Mon, 07 July 2008 18:10  |
Eclipse User |
|
|
|
John J Barton wrote:
> Chris Aniszczyk wrote:
>> John J Barton wrote:
>>> Anyone have a procedure for debugging this?
>>
>> Start Eclipse with -console, and type 'ss'
>
> As in
> eclipse -console
> ? eclipse comes up but I don't see where to type 'ss"?
Using
java -r plugins/org.eclipse.osgi_3.4.0.v20080529-1200.jar -console
I got the OSGI console,
but ss
only says the osgi bundle is active ;-(
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572176 is a reply to message #11304] |
Mon, 07 July 2008 19:06  |
Eclipse User |
|
|
|
What's your bundle? Why are you diagnosing the osgi bundle
(org.eclipse.osgi) ?
So your bundle is already started? and active?
so 'diag johns.bundle' returns an OK status?
We should be able to diagnose this sucker, just need to figure out how
to get you in a state where you can do this ;)
Cheers,
~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572203 is a reply to message #11341] |
Mon, 07 July 2008 19:41  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
> What's your bundle? Why are you diagnosing the osgi bundle
> (org.eclipse.osgi) ?
>
> So your bundle is already started? and active?
>
> so 'diag johns.bundle' returns an OK status?
>
> We should be able to diagnose this sucker, just need to figure out how
> to get you in a state where you can do this ;)
>
> Cheers,
>
> ~ Chris
Yes, I can see this is the right track, but where is the trailhead...
I think the problem is that I am not getting my eclipse bundles loaded
in to osgi runtime which I just use java -jar ...
And
eclipse -console
does nothing.
So I need ot start the osgi console but with the eclipse plugins bundles.
I need to do this for 3.4 and for Europa, and I think the solutions are
different.
Thanks for your help.
John
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572238 is a reply to message #11377] |
Mon, 07 July 2008 19:43  |
Eclipse User |
|
|
|
John J Barton wrote:
> I need to do this for 3.4 and for Europa, and I think the solutions are
> different.
That sounds like a bug if you're not getting a console... which OS?
If your bundle is listed as active... that means its started and
functioning according to the OSGi environment... you can even put test
print statements in the bundle start/stop to verify that this is the case.
Cheers,
~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572270 is a reply to message #11414] |
Mon, 07 July 2008 20:11  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
> John J Barton wrote:
>> I need to do this for 3.4 and for Europa, and I think the solutions
>> are different.
>
> That sounds like a bug if you're not getting a console... which OS?
Windows. So you mean for Europa, eclipse.exe -console should work?
>
> If your bundle is listed as active... that means its started and
> functioning according to the OSGi environment... you can even put test
> print statements in the bundle start/stop to verify that this is the case.
No its not active, it never starts.
>
> Cheers,
>
> ~ Chris
|
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572350 is a reply to message #11487] |
Mon, 07 July 2008 20:20  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
>> Windows. So you mean for Europa, eclipse.exe -console should work?
>
> what about eclipsec.exe ;)? or if you open a command line... eclipse.exe
> -console should work...
Both eclipsec.exe and eclipse.exe -console do the same: bring up eclipse.
>
>> No its not active, it never starts.
>
> what happens when you try to start it from the OSGi console?
Can't. The only OSGi console I can get has no eclipse plugins, that is
"ss" says only one line, the console jar itself.
>
> I have an article out there on the OSGi console if you're interested...
>
> http://www.ibm.com/developerworks/library/os-ecl-osgiconsole /index.html
Yes, that article is what makes me think this is worth figuring out.
Esp. the quake console ;-)
> Cheers,
>
> ~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572440 is a reply to message #11524] |
Tue, 08 July 2008 08:42  |
Eclipse User |
|
|
|
Check the eclipse.ini file. Imagine the path to the vm is
<java_home>\bin\javaw.exe. Change it to java.exe instead then try the
-console again.
--Peter
John J Barton wrote:
> Chris Aniszczyk wrote:
>>> Windows. So you mean for Europa, eclipse.exe -console should work?
>>
>> what about eclipsec.exe ;)? or if you open a command line...
>> eclipse.exe -console should work...
>
> Both eclipsec.exe and eclipse.exe -console do the same: bring up eclipse.
>
>>
>>> No its not active, it never starts.
>>
>> what happens when you try to start it from the OSGi console?
>
> Can't. The only OSGi console I can get has no eclipse plugins, that is
> "ss" says only one line, the console jar itself.
>
>>
>> I have an article out there on the OSGi console if you're interested...
>>
>> http://www.ibm.com/developerworks/library/os-ecl-osgiconsole /index.html
>
> Yes, that article is what makes me think this is worth figuring out.
> Esp. the quake console ;-)
>
>
>> Cheers,
>>
>> ~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572508 is a reply to message #11599] |
Tue, 08 July 2008 14:46  |
Eclipse User |
|
|
|
Peter Manahan wrote:
> Check the eclipse.ini file. Imagine the path to the vm is
> <java_home>\bin\javaw.exe. Change it to java.exe instead then try the
> -console again.
>
> --Peter
Thanks Peter, but there is nothing in eclise.ini about vm:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572523 is a reply to message #11668] |
Tue, 08 July 2008 15:07  |
Eclipse User |
|
|
|
John J Barton wrote:
> Peter Manahan wrote:
>> Check the eclipse.ini file. Imagine the path to the vm is
>> <java_home>\bin\javaw.exe. Change it to java.exe instead then try the
>> -console again.
>>
>> --Peter
>
Ok I woke up and ran eclipse with -vm <my path>/java.exe -console
Success, I got an OSGi console.
osgi> diag 491
....myplugin....jar [491]
Missing required bundle org.eclipse.wst.server.core_1.1.0.
So thanks I've found the problem. But I am really surprised that this is
the way users find out that they don't have the right pre-reqs for a plugin.
John.
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572589 is a reply to message #11704] |
Tue, 08 July 2008 15:11  |
Eclipse User |
|
|
|
John J Barton wrote:
> So thanks I've found the problem. But I am really surprised that this is
> the way users find out that they don't have the right pre-reqs for a
> plugin.
How did you install the plug-ins? Basically any normal way you installed
plug-ins shouldn't of let you install your plug-in w/o the proper pre-reqs.
Cheers,
~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572605 is a reply to message #11741] |
Tue, 08 July 2008 17:12  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
> John J Barton wrote:
>> So thanks I've found the problem. But I am really surprised that this
>> is the way users find out that they don't have the right pre-reqs for
>> a plugin.
>
> How did you install the plug-ins? Basically any normal way you installed
> plug-ins shouldn't of let you install your plug-in w/o the proper pre-reqs.
>
I am trying to install via an update site. So on the PDE I do these steps:
1) increment the version of the plugin
2) increment the version of the feature
3) add the new feature to the update site
4) install on the test eclipse. (not update that never works).
But then the plugin does not work and I get a red mark on the Plug Registry.
Is that the normal way?
John.
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572630 is a reply to message #11741] |
Tue, 08 July 2008 18:10  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
> John J Barton wrote:
>> So thanks I've found the problem. But I am really surprised that this
>> is the way users find out that they don't have the right pre-reqs for
>> a plugin.
>
> How did you install the plug-ins? Basically any normal way you installed
> plug-ins shouldn't of let you install your plug-in w/o the proper pre-reqs.
>
> Cheers,
>
> ~ Chris
Ok I opened a fresh copy of eclipse-jee-europa-winter-win32. Then I used
my update site to install my plugin. Everything when smoothly. But in
the end the plugin does not work and the osgi console says the same
thing, missing required bundle org.eclipse.server.core_1.1.0
John.
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572665 is a reply to message #11812] |
Tue, 08 July 2008 18:11  |
Eclipse User |
|
|
|
> Ok I opened a fresh copy of eclipse-jee-europa-winter-win32. Then I used
> my update site to install my plugin. Everything when smoothly. But in
> the end the plugin does not work and the osgi console says the same
> thing, missing required bundle org.eclipse.server.core_1.1.0
The only way I can see this happening is if someone defined a feature
improperly so when you went to download things, Update Manager thought
everything was OK but it really wasn't...
With Ganymede, you shouldn't run into these issues as p2 is much smarter
and actually uses dependency data from bundles themselves as part of the
p2 metadata.
Cheers,
~ Chris
|
|
|
Re: Plugin fails to load, red mark on Plugin Registry [message #572679 is a reply to message #11848] |
Tue, 08 July 2008 18:45  |
Eclipse User |
|
|
|
Chris Aniszczyk wrote:
>> Ok I opened a fresh copy of eclipse-jee-europa-winter-win32. Then I
>> used my update site to install my plugin. Everything when smoothly.
>> But in the end the plugin does not work and the osgi console says the
>> same thing, missing required bundle org.eclipse.server.core_1.1.0
>
> The only way I can see this happening is if someone defined a feature
> improperly so when you went to download things, Update Manager thought
> everything was OK but it really wasn't...
hmmm...that 'someone' would be me I guess. I'd say "defined a feature"
was a very fancy name for what I did: I just pushed buttons on the PDE
based on some web site. So....
How can I diagnose the feature?
>
> With Ganymede, you shouldn't run into these issues as p2 is much smarter
> and actually uses dependency data from bundles themselves as part of the
> p2 metadata.
Too bad my users aren't on ganymede...
>
> Cheers,
>
> ~ Chris
|
|
|