3.5 Stand Alone RCP Missing Bundles [message #483536] |
Tue, 01 September 2009 18:44  |
Eclipse User |
|
|
|
All,
eclipse 3.5
I am attempting to build a stand alone RCP app from a working plug in. I
go through the export using the wizard steps, as prescribed, and the
export succeeds with out incident.
When I run the app I get and error dialog referring me to the log file.
(See below)
It seems that org.eclipse.core.runtime bundle is not starting. The bundle
is being deployed but there is no entry for it following
"osgi.bundles=..." in the generated config.ini file. I have tried adding
it in as follows;
osgi.bundles=reference\:file\:org.eclipse.core.runtime_3.5.0.v20090525.jar@start,
... more bundles ...
But I get the same error.
What's going on?
Log file:
!SESSION 2009-09-01 14:27:52.917
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 4 0 2009-09-01 14:27:54.073
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service.
Ensure that the org.eclipse.core.runtime bundle is resolved and started
(see config.ini).
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
|
|
|
Re: 3.5 Stand Alone RCP Missing Bundles [message #483540 is a reply to message #483536] |
Tue, 01 September 2009 20:36   |
Eclipse User |
|
|
|
Hi Geoff,
I was running into a similar issue.
It turned out that the .ini file that is generated by the RCP product export
wizard was inserting the variables instead of the actual values. After
deleting this file, my RCP app launched correctly. This file is in the same
folder as the executable.
These were the values in the log file,
BootLoader constants: OS=${target.os}, ARCH=${target.arch}, WS=${target.ws},
NL=${target.nl}
Command-line arguments: -os ${target.os} -ws ${target.ws} -arch
${target.arch}
While the following were the values used when launching the app from within
Eclipse using the 'Run ..' command -
-os
win32
-ws
win32
-arch
x86
-nl
en_US
Thanks,
Aashish
"Geoffry Roberts" <geoff.roberts@qinetiq-na.com> wrote in message
news:eac176f2c1ff3fd3cdf30263a4167630$1@www.eclipse.org...
> All,
>
> eclipse 3.5
>
> I am attempting to build a stand alone RCP app from a working plug in. I
> go through the export using the wizard steps, as prescribed, and the
> export succeeds with out incident.
>
> When I run the app I get and error dialog referring me to the log file.
> (See below)
>
> It seems that org.eclipse.core.runtime bundle is not starting. The bundle
> is being deployed but there is no entry for it following
> "osgi.bundles=..." in the generated config.ini file. I have tried adding
> it in as follows;
>
> osgi.bundles=reference\:file\:org.eclipse.core.runtime_3.5.0.v20090525.jar@start,
> .. more bundles ...
>
> But I get the same error.
>
> What's going on?
>
> Log file:
>
> !SESSION 2009-09-01
> 14:27:52.917 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_15
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.osgi 4 0 2009-09-01 14:27:54.073
> !MESSAGE Application error
> !STACK 1
> java.lang.IllegalStateException: Unable to acquire application service.
> Ensure that the org.eclipse.core.runtime bundle is resolved and started
> (see config.ini).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> 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.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>
|
|
|
Re: 3.5 Stand Alone RCP Missing Bundles [message #483708 is a reply to message #483540] |
Wed, 02 September 2009 12:11  |
Eclipse User |
|
|
|
Thanks to Aashish for his response.
I tried your suggestion but to no avail. Does 3.5 have a bug?
Aashish Patil wrote:
> Hi Geoff,
> I was running into a similar issue.
> It turned out that the .ini file that is generated by the RCP product export
> wizard was inserting the variables instead of the actual values. After
> deleting this file, my RCP app launched correctly. This file is in the same
> folder as the executable.
> These were the values in the log file,
> BootLoader constants: OS=${target.os}, ARCH=${target.arch}, WS=${target.ws},
> NL=${target.nl}
> Command-line arguments: -os ${target.os} -ws ${target.ws} -arch
> ${target.arch}
> While the following were the values used when launching the app from within
> Eclipse using the 'Run ..' command -
> -os
> win32
> -ws
> win32
> -arch
> x86
> -nl
> en_US
> Thanks,
> Aashish
> "Geoffry Roberts" <geoff.roberts@qinetiq-na.com> wrote in message
> news:eac176f2c1ff3fd3cdf30263a4167630$1@www.eclipse.org...
>> All,
>>
>> eclipse 3.5
>>
>> I am attempting to build a stand alone RCP app from a working plug in. I
>> go through the export using the wizard steps, as prescribed, and the
>> export succeeds with out incident.
>>
>> When I run the app I get and error dialog referring me to the log file.
>> (See below)
>>
>> It seems that org.eclipse.core.runtime bundle is not starting. The bundle
>> is being deployed but there is no entry for it following
>> "osgi.bundles=..." in the generated config.ini file. I have tried adding
>> it in as follows;
>>
>>
osgi.bundles=reference:file:org.eclipse.core.runtime_3.5.0.v20090525.jar@start,
>> .. more bundles ...
>>
>> But I get the same error.
>>
>> What's going on?
>>
>> Log file:
>>
>> !SESSION 2009-09-01
>> 14:27:52.917 -----------------------------------------------
>> eclipse.buildId=unknown
>> java.version=1.6.0_15
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>> Command-line arguments: -os win32 -ws win32 -arch x86
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-09-01 14:27:54.073
>> !MESSAGE Application error
>> !STACK 1
>> java.lang.IllegalStateException: Unable to acquire application service.
>> Ensure that the org.eclipse.core.runtime bundle is resolved and started
>> (see config.ini).
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> 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.equinox.launcher.Main.invokeFramework(Main.java: 559)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04616 seconds