Skip to main content



      Home
Home » Eclipse Projects » Equinox » Exporting an RCP Application problems: Bundle "org.eclipse.osgi" version "3.0.0"
Exporting an RCP Application problems: Bundle "org.eclipse.osgi" version "3.0.0" [message #45248] Wed, 04 August 2004 17:01 Go to next message
Eclipse UserFriend
Hi,

We have written a RCP application that runs correctly in the Eclipse
Debugger
(Debug -> Runtime Workbench -> Run a product...)

We have been trying to deploy it as an application following Pascal
Rapicault's helpful instructions.
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- build-home/articles/export%20rcp%20apps/article.html

(NOTE: we had to get a patch to a bug in org.eclipse.pde.build
https://bugs.eclipse.org/bugs/show_bug.cgi?id=68712)

It almost works!

The wizard generated the zip file, and the zip file extracts into an
application that loads.

However, the application only loads some of our Menubar items (not all) and
writes the following message in the error log:
(Message follows below)

Also:
The about dialog shows that all of our plugins are loaded, as well as the
following eclipse plugins:
org.eclipse.core.runtime
org.eclipse.ui
org.eclipse.core.expressions
org.eclipse.help
org.eclipse.jface
org.eclipse.osgi.services
org.eclipse.osgi
org.eclipse.swt
org.eclipse.swt.win32
org.eclipse.ui.workbench


Thanks,


Arturo.



(Message from error log:)

!SESSION Aug 04, 2004
15:23:09.125 ---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.125
!MESSAGE Bundle org.eclipse.swt.gtk not found.

!ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.140
!MESSAGE Bundle org.eclipse.swt.carbon not found.

!ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
!MESSAGE Bundle org.eclipse.swt.gtk64 not found.

!ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
!MESSAGE Bundle org.eclipse.swt.motif not found.

!ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
!MESSAGE Bundle org.eclipse.swt.photon not found.

!ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.546
!MESSAGE Error installing bundle: reference:file:c:/Documents and
Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
!STACK 0
org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
"3.0.0" has already been installed from: System Bundle
at
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
ramework.java:751)
at
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
ava:715)
at
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
ava:659)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
dleContextImpl.java:219)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
r.java:800)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
ter.java:429)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Re: Exporting an RCP Application problems: Bundle "org.eclipse.osgi" version "3.0.0&q [message #45285 is a reply to message #45248] Thu, 05 August 2004 14:20 Go to previous messageGo to next message
Eclipse UserFriend
We were able to deploy our application. Here is what we did:
1. removed extra osgi.bundles from config.ini:
org.eclipse.osgi.services
org.eclipse.swt.gtk
org.eclipse.swt.carbon
org.eclipse.swt.gtk64
org.eclipse.swt.motif
org.eclipse.swt.photon

NOTE: not sure what osgi.services does but when launching from eclipse, it
doesn't seem to be required.
NOTE: we are only deploying on win32

2. added osgi.bundles for other plugins that our application requires:
org.eclipse.core.runtime.compatibility
org.eclipse.pde.runtime
org.eclipse.ui.views

3. also added osgi.bundles:
org.eclipse.update.configurator

4. removed and added relevant plugins from rcpHelper feature.xml



NOTE: we are still seing the error message logged:


!ENTRY org.eclipse.osgi Aug 05, 2004 14:13:14.281
!MESSAGE Error installing bundle: reference:file:c:/Documents and
Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
!STACK 0
org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
"3.0.0" has already been installed from: System Bundle
at
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
ramework.java:751)
at
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
ava:715)
at
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
ava:659)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
dleContextImpl.java:219)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
r.java:800)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
ter.java:429)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)


"Arturo" <arturo@pragmafs.com> wrote in message
news:ceribh$458$1@eclipse.org...
> Hi,
>
> We have written a RCP application that runs correctly in the Eclipse
> Debugger
> (Debug -> Runtime Workbench -> Run a product...)
>
> We have been trying to deploy it as an application following Pascal
> Rapicault's helpful instructions.
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- build-home/articles/export%20rcp%20apps/article.html
>
> (NOTE: we had to get a patch to a bug in org.eclipse.pde.build
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=68712)
>
> It almost works!
>
> The wizard generated the zip file, and the zip file extracts into an
> application that loads.
>
> However, the application only loads some of our Menubar items (not all)
and
> writes the following message in the error log:
> (Message follows below)
>
> Also:
> The about dialog shows that all of our plugins are loaded, as well as the
> following eclipse plugins:
> org.eclipse.core.runtime
> org.eclipse.ui
> org.eclipse.core.expressions
> org.eclipse.help
> org.eclipse.jface
> org.eclipse.osgi.services
> org.eclipse.osgi
> org.eclipse.swt
> org.eclipse.swt.win32
> org.eclipse.ui.workbench
>
>
> Thanks,
>
>
> Arturo.
>
>
>
> (Message from error log:)
>
> !SESSION Aug 04, 2004
> 15:23:09.125 ---------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_04
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>
> !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.125
> !MESSAGE Bundle org.eclipse.swt.gtk not found.
>
> !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.140
> !MESSAGE Bundle org.eclipse.swt.carbon not found.
>
> !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> !MESSAGE Bundle org.eclipse.swt.gtk64 not found.
>
> !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> !MESSAGE Bundle org.eclipse.swt.motif not found.
>
> !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> !MESSAGE Bundle org.eclipse.swt.photon not found.
>
> !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.546
> !MESSAGE Error installing bundle: reference:file:c:/Documents and
> Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> !STACK 0
> org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> "3.0.0" has already been installed from: System Bundle
> at
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> ramework.java:751)
> at
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> ava:715)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> ava:659)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> dleContextImpl.java:219)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> r.java:800)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> ter.java:429)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> 222)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> at org.eclipse.core.launcher.Main.run(Main.java:644)
> at org.eclipse.core.launcher.Main.main(Main.java:628)
>
>
Re: Exporting an RCP Application problems: Bundle "org.eclipse.osgi" version "3.0.0&q [message #45315 is a reply to message #45285] Thu, 05 August 2004 14:31 Go to previous messageGo to next message
Eclipse UserFriend
I still have a related question, just to satisfy my curiosity:
what does the @2:start mean in the config.ini
osgi.bundles = org.eclipse.core.runtime@2:start, \ (...)

"Arturo" <arturo@pragmafs.com> wrote in message
news:cettam$luh$1@eclipse.org...
> We were able to deploy our application. Here is what we did:
> 1. removed extra osgi.bundles from config.ini:
> org.eclipse.osgi.services
> org.eclipse.swt.gtk
> org.eclipse.swt.carbon
> org.eclipse.swt.gtk64
> org.eclipse.swt.motif
> org.eclipse.swt.photon
>
> NOTE: not sure what osgi.services does but when launching from eclipse, it
> doesn't seem to be required.
> NOTE: we are only deploying on win32
>
> 2. added osgi.bundles for other plugins that our application requires:
> org.eclipse.core.runtime.compatibility
> org.eclipse.pde.runtime
> org.eclipse.ui.views
>
> 3. also added osgi.bundles:
> org.eclipse.update.configurator
>
> 4. removed and added relevant plugins from rcpHelper feature.xml
>
>
>
> NOTE: we are still seing the error message logged:
>
>
> !ENTRY org.eclipse.osgi Aug 05, 2004 14:13:14.281
> !MESSAGE Error installing bundle: reference:file:c:/Documents and
> Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> !STACK 0
> org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> "3.0.0" has already been installed from: System Bundle
> at
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> ramework.java:751)
> at
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> ava:715)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> ava:659)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> dleContextImpl.java:219)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> r.java:800)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> ter.java:429)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> 222)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> at org.eclipse.core.launcher.Main.run(Main.java:644)
> at org.eclipse.core.launcher.Main.main(Main.java:628)
>
>
> "Arturo" <arturo@pragmafs.com> wrote in message
> news:ceribh$458$1@eclipse.org...
> > Hi,
> >
> > We have written a RCP application that runs correctly in the Eclipse
> > Debugger
> > (Debug -> Runtime Workbench -> Run a product...)
> >
> > We have been trying to deploy it as an application following Pascal
> > Rapicault's helpful instructions.
> >
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- build-home/articles/export%20rcp%20apps/article.html
> >
> > (NOTE: we had to get a patch to a bug in org.eclipse.pde.build
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=68712)
> >
> > It almost works!
> >
> > The wizard generated the zip file, and the zip file extracts into an
> > application that loads.
> >
> > However, the application only loads some of our Menubar items (not all)
> and
> > writes the following message in the error log:
> > (Message follows below)
> >
> > Also:
> > The about dialog shows that all of our plugins are loaded, as well as
the
> > following eclipse plugins:
> > org.eclipse.core.runtime
> > org.eclipse.ui
> > org.eclipse.core.expressions
> > org.eclipse.help
> > org.eclipse.jface
> > org.eclipse.osgi.services
> > org.eclipse.osgi
> > org.eclipse.swt
> > org.eclipse.swt.win32
> > org.eclipse.ui.workbench
> >
> >
> > Thanks,
> >
> >
> > Arturo.
> >
> >
> >
> > (Message from error log:)
> >
> > !SESSION Aug 04, 2004
> > 15:23:09.125 ---------------------------------------------
> > eclipse.buildId=unknown
> > java.version=1.4.2_04
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> >
> > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.125
> > !MESSAGE Bundle org.eclipse.swt.gtk not found.
> >
> > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.140
> > !MESSAGE Bundle org.eclipse.swt.carbon not found.
> >
> > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > !MESSAGE Bundle org.eclipse.swt.gtk64 not found.
> >
> > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > !MESSAGE Bundle org.eclipse.swt.motif not found.
> >
> > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > !MESSAGE Bundle org.eclipse.swt.photon not found.
> >
> > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.546
> > !MESSAGE Error installing bundle: reference:file:c:/Documents and
> > Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> > !STACK 0
> > org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> > "3.0.0" has already been installed from: System Bundle
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> > ramework.java:751)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> > ava:715)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> > ava:659)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> > dleContextImpl.java:219)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> > r.java:800)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> > ter.java:429)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> > 222)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> > at org.eclipse.core.launcher.Main.run(Main.java:644)
> > at org.eclipse.core.launcher.Main.main(Main.java:628)
> >
> >
>
>
Re: Exporting an RCP Application problems: Bundle "org.eclipse.osgi" version "3.0.0&q [message #45562 is a reply to message #45315] Thu, 26 August 2004 05:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shikuangming.hotmail.com

Hi,

The simple way is to comment "osgi.bundles = ..." in config.ini.
And add org.eclipse.update.configurator_3.0.0 plugin into rcp's plugins
folder.



"Arturo" <arturo@pragmafs.com> wrote in message
news:cettul$mte$1@eclipse.org...
> I still have a related question, just to satisfy my curiosity:
> what does the @2:start mean in the config.ini
> osgi.bundles = org.eclipse.core.runtime@2:start, \ (...)
>
> "Arturo" <arturo@pragmafs.com> wrote in message
> news:cettam$luh$1@eclipse.org...
> > We were able to deploy our application. Here is what we did:
> > 1. removed extra osgi.bundles from config.ini:
> > org.eclipse.osgi.services
> > org.eclipse.swt.gtk
> > org.eclipse.swt.carbon
> > org.eclipse.swt.gtk64
> > org.eclipse.swt.motif
> > org.eclipse.swt.photon
> >
> > NOTE: not sure what osgi.services does but when launching from eclipse,
it
> > doesn't seem to be required.
> > NOTE: we are only deploying on win32
> >
> > 2. added osgi.bundles for other plugins that our application requires:
> > org.eclipse.core.runtime.compatibility
> > org.eclipse.pde.runtime
> > org.eclipse.ui.views
> >
> > 3. also added osgi.bundles:
> > org.eclipse.update.configurator
> >
> > 4. removed and added relevant plugins from rcpHelper feature.xml
> >
> >
> >
> > NOTE: we are still seing the error message logged:
> >
> >
> > !ENTRY org.eclipse.osgi Aug 05, 2004 14:13:14.281
> > !MESSAGE Error installing bundle: reference:file:c:/Documents and
> > Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> > !STACK 0
> > org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> > "3.0.0" has already been installed from: System Bundle
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> > ramework.java:751)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> > ava:715)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> > ava:659)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> > dleContextImpl.java:219)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> > r.java:800)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> > ter.java:429)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> > 222)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> > at org.eclipse.core.launcher.Main.run(Main.java:644)
> > at org.eclipse.core.launcher.Main.main(Main.java:628)
> >
> >
> > "Arturo" <arturo@pragmafs.com> wrote in message
> > news:ceribh$458$1@eclipse.org...
> > > Hi,
> > >
> > > We have written a RCP application that runs correctly in the Eclipse
> > > Debugger
> > > (Debug -> Runtime Workbench -> Run a product...)
> > >
> > > We have been trying to deploy it as an application following Pascal
> > > Rapicault's helpful instructions.
> > >
> >
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- build-home/artic
les/export%20rcp%20apps/article.html
> > >
> > > (NOTE: we had to get a patch to a bug in org.eclipse.pde.build
> > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=68712)
> > >
> > > It almost works!
> > >
> > > The wizard generated the zip file, and the zip file extracts into an
> > > application that loads.
> > >
> > > However, the application only loads some of our Menubar items (not
all)
> > and
> > > writes the following message in the error log:
> > > (Message follows below)
> > >
> > > Also:
> > > The about dialog shows that all of our plugins are loaded, as well as
> the
> > > following eclipse plugins:
> > > org.eclipse.core.runtime
> > > org.eclipse.ui
> > > org.eclipse.core.expressions
> > > org.eclipse.help
> > > org.eclipse.jface
> > > org.eclipse.osgi.services
> > > org.eclipse.osgi
> > > org.eclipse.swt
> > > org.eclipse.swt.win32
> > > org.eclipse.ui.workbench
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Arturo.
> > >
> > >
> > >
> > > (Message from error log:)
> > >
> > > !SESSION Aug 04, 2004
> > > 15:23:09.125 ---------------------------------------------
> > > eclipse.buildId=unknown
> > > java.version=1.4.2_04
> > > java.vendor=Sun Microsystems Inc.
> > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.125
> > > !MESSAGE Bundle org.eclipse.swt.gtk not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.140
> > > !MESSAGE Bundle org.eclipse.swt.carbon not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > > !MESSAGE Bundle org.eclipse.swt.gtk64 not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > > !MESSAGE Bundle org.eclipse.swt.motif not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > > !MESSAGE Bundle org.eclipse.swt.photon not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.546
> > > !MESSAGE Error installing bundle: reference:file:c:/Documents and
> > > Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> > > !STACK 0
> > > org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> > > "3.0.0" has already been installed from: System Bundle
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> > > ramework.java:751)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> > > ava:715)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> > > ava:659)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> > > dleContextImpl.java:219)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> > > r.java:800)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> > > ter.java:429)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> > > 222)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > > at java.lang.reflect.Method.invoke(Unknown Source)
> > > at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> > > at org.eclipse.core.launcher.Main.run(Main.java:644)
> > > at org.eclipse.core.launcher.Main.main(Main.java:628)
> > >
> > >
> >
> >
>
>
Re: Exporting an RCP Application problems: Bundle "org.eclipse.osgi" version "3.0.0&q [message #45624 is a reply to message #45315] Wed, 08 September 2004 12:01 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

remove the org.eclipse.osgi item from the osgi.bundles list. It is not
needed since that bundle is the one interpreting the list!

the @2:start syntax is documented in the config.ini that comes with Eclipse
# The comma-separated list of bundles which are automatically installed and
optionally started
# once the system is up and running. Each entry if of the form
# <URL | simple bundle location>[@ [<startlevel>] [":start"]]
# If the startlevel is omitted then the framework will use the default start
level for the bundle.
# If the "start" tag is added then the bundle will be marked as started
after being installed.
# Simple bundle locations are interepreted as relative to the framework's
parent directory.
# The startlevel indicates the OSGi start level at which the bundle should
run.
# If this value is not set, the system computes an appropriate default.

Jeff


"Arturo" <arturo@pragmafs.com> wrote in message
news:cettul$mte$1@eclipse.org...
> I still have a related question, just to satisfy my curiosity:
> what does the @2:start mean in the config.ini
> osgi.bundles = org.eclipse.core.runtime@2:start, \ (...)
>
> "Arturo" <arturo@pragmafs.com> wrote in message
> news:cettam$luh$1@eclipse.org...
> > We were able to deploy our application. Here is what we did:
> > 1. removed extra osgi.bundles from config.ini:
> > org.eclipse.osgi.services
> > org.eclipse.swt.gtk
> > org.eclipse.swt.carbon
> > org.eclipse.swt.gtk64
> > org.eclipse.swt.motif
> > org.eclipse.swt.photon
> >
> > NOTE: not sure what osgi.services does but when launching from eclipse,
it
> > doesn't seem to be required.
> > NOTE: we are only deploying on win32
> >
> > 2. added osgi.bundles for other plugins that our application requires:
> > org.eclipse.core.runtime.compatibility
> > org.eclipse.pde.runtime
> > org.eclipse.ui.views
> >
> > 3. also added osgi.bundles:
> > org.eclipse.update.configurator
> >
> > 4. removed and added relevant plugins from rcpHelper feature.xml
> >
> >
> >
> > NOTE: we are still seing the error message logged:
> >
> >
> > !ENTRY org.eclipse.osgi Aug 05, 2004 14:13:14.281
> > !MESSAGE Error installing bundle: reference:file:c:/Documents and
> > Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> > !STACK 0
> > org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> > "3.0.0" has already been installed from: System Bundle
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> > ramework.java:751)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> > ava:715)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> > ava:659)
> > at
> >
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> > dleContextImpl.java:219)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> > r.java:800)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> > ter.java:429)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> > 222)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> > at org.eclipse.core.launcher.Main.run(Main.java:644)
> > at org.eclipse.core.launcher.Main.main(Main.java:628)
> >
> >
> > "Arturo" <arturo@pragmafs.com> wrote in message
> > news:ceribh$458$1@eclipse.org...
> > > Hi,
> > >
> > > We have written a RCP application that runs correctly in the Eclipse
> > > Debugger
> > > (Debug -> Runtime Workbench -> Run a product...)
> > >
> > > We have been trying to deploy it as an application following Pascal
> > > Rapicault's helpful instructions.
> > >
> >
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- build-home/articles/export%20rcp%20apps/article.html
> > >
> > > (NOTE: we had to get a patch to a bug in org.eclipse.pde.build
> > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=68712)
> > >
> > > It almost works!
> > >
> > > The wizard generated the zip file, and the zip file extracts into an
> > > application that loads.
> > >
> > > However, the application only loads some of our Menubar items (not
all)
> > and
> > > writes the following message in the error log:
> > > (Message follows below)
> > >
> > > Also:
> > > The about dialog shows that all of our plugins are loaded, as well as
> the
> > > following eclipse plugins:
> > > org.eclipse.core.runtime
> > > org.eclipse.ui
> > > org.eclipse.core.expressions
> > > org.eclipse.help
> > > org.eclipse.jface
> > > org.eclipse.osgi.services
> > > org.eclipse.osgi
> > > org.eclipse.swt
> > > org.eclipse.swt.win32
> > > org.eclipse.ui.workbench
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Arturo.
> > >
> > >
> > >
> > > (Message from error log:)
> > >
> > > !SESSION Aug 04, 2004
> > > 15:23:09.125 ---------------------------------------------
> > > eclipse.buildId=unknown
> > > java.version=1.4.2_04
> > > java.vendor=Sun Microsystems Inc.
> > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.125
> > > !MESSAGE Bundle org.eclipse.swt.gtk not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.140
> > > !MESSAGE Bundle org.eclipse.swt.carbon not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > > !MESSAGE Bundle org.eclipse.swt.gtk64 not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > > !MESSAGE Bundle org.eclipse.swt.motif not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.156
> > > !MESSAGE Bundle org.eclipse.swt.photon not found.
> > >
> > > !ENTRY org.eclipse.osgi Aug 04, 2004 15:23:09.546
> > > !MESSAGE Error installing bundle: reference:file:c:/Documents and
> > > Settings/Administrator/Desktop/test/plugins/org.eclipse.osgi _3.0.0/
> > > !STACK 0
> > > org.osgi.framework.BundleException: Bundle "org.eclipse.osgi" version
> > > "3.0.0" has already been installed from: System Bundle
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(F
> > > ramework.java:751)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:664)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.j
> > > ava:715)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.j
> > > ava:659)
> > > at
> > >
> >
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(Bun
> > > dleContextImpl.java:219)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarte
> > > r.java:800)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStar
> > > ter.java:429)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:
> > > 222)
> > > at
> > >
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:127)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > > at java.lang.reflect.Method.invoke(Unknown Source)
> > > at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> > > at org.eclipse.core.launcher.Main.run(Main.java:644)
> > > at org.eclipse.core.launcher.Main.main(Main.java:628)
> > >
> > >
> >
> >
>
>
Previous Topic:ANN: New Technology Project: Embedded RCP
Next Topic:extending eclipse class loaders
Goto Forum:
  


Current Time: Thu Jul 17 20:11:22 EDT 2025

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

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

Back to the top