Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Problems configuring headless buckminster
Problems configuring headless buckminster [message #639736] Wed, 17 November 2010 15:42 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
I'm trying to setup a headless buckminster, but keep running into the
following exception:

> Framework arguments: -application org.eclipse.buckminster.cmdline.headless --loglevel DEBUG dumpinfo
> Command-line arguments: -application org.eclipse.buckminster.cmdline.headless --loglevel DEBUG -data /home/jesperes/tmpws/headless-workspace dumpinfo
>
> !ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2010-11-17 16:40:31.113
> !MESSAGE
> !STACK 0
> org.osgi.framework.BundleException: Exception in org.eclipse.equinox.internal.simpleconfigurator.Activator.st art() of bundle org.eclipse.equinox.simpleconfigurator.
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:806)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:755)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:370)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:374)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1067)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:561)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:546)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:459)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:440)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:337)
> Caused by: java.lang.IllegalStateException: The System Bundle was updated. The framework must be restarted to finalize the configuration change
> at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplie r.install(ConfigApplier.java:71)
> at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfig uratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:12 9)
> at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfig uratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:14 3)
> at org.eclipse.equinox.internal.simpleconfigurator.Activator.st art(Activator.java:48)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:783)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:774)
> ... 11 more
> Root exception:

What does it mean? How can I fix it?

--
Jesper Eskilson
Developer
IAR Systems
Re: Problems configuring headless buckminster [message #639747 is a reply to message #639736] Wed, 17 November 2010 16:25 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Does not seem like you are getting very far and that something is
fundamentally wrong. How did you set up your headless buckminster?
Where did you get it from, and what did you do to configure it?

Regards
- henrik

On 11/17/10 4:42 PM, Jesper Eskilson wrote:
> I'm trying to setup a headless buckminster, but keep running into the
> following exception:
>
>> Framework arguments: -application
>> org.eclipse.buckminster.cmdline.headless --loglevel DEBUG dumpinfo
>> Command-line arguments: -application
>> org.eclipse.buckminster.cmdline.headless --loglevel DEBUG -data
>> /home/jesperes/tmpws/headless-workspace dumpinfo
>>
>> !ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2010-11-17 16:40:31.113
>> !MESSAGE
>> !STACK 0
>> org.osgi.framework.BundleException: Exception in
>> org.eclipse.equinox.internal.simpleconfigurator.Activator.st art() of
>> bundle org.eclipse.equinox.simpleconfigurator.
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:806)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:755)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:370)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:374)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1067)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:561)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:546)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:459)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:243)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:440)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:337)
>>
>> Caused by: java.lang.IllegalStateException: The System Bundle was
>> updated. The framework must be restarted to finalize the configuration
>> change
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplie r.install(ConfigApplier.java:71)
>>
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfig uratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:12 9)
>>
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfig uratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:14 3)
>>
>> at
>> org.eclipse.equinox.internal.simpleconfigurator.Activator.st art(Activator.java:48)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:783)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:774)
>>
>> ... 11 more
>> Root exception:
>
> What does it mean? How can I fix it?
>
Re: Problems configuring headless buckminster [message #639770 is a reply to message #639736] Wed, 17 November 2010 17:20 Go to previous messageGo to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 85
Registered: July 2009
Member
I've seen similar problems when some Eclipse bundles (especially
org.eclipse.osgi) were present in different versions. Deleting the older
ones somehow solved the problem, though this should not have happened in
the first place...
Re: Problems configuring headless buckminster [message #639906 is a reply to message #639747] Thu, 18 November 2010 11:08 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070601070902000508090907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 11/17/2010 05:25 PM, Henrik Lindberg wrote:
> Does not seem like you are getting very far and that something is
> fundamentally wrong. How did you set up your headless buckminster?
> Where did you get it from, and what did you do to configure it?

See attached build.xml/build.properties.

In short, I download director_latest.zip, and use it to install

org.eclipse.buckminster.cmdline.product
org.eclipse.b3.cli.product
org.eclipse.b3.aggregator.engine.feature.feature.group

Then the error appears when I try to install the
org.eclipse.buckminster.core.headless.feature component into Buckminster.

--
Jesper Eskilson
Developer
IAR Systems

--------------070601070902000508090907
Content-Type: text/xml;
name="build.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="build.xml"

<project name="Build buckminster headless" default="build">
<property file="build.properties" />

<property name="director" location="${basedir}/director" />
<property name="buckminster.headless" location="${basedir}/buckminster-headless" />
<property name="buckminster.headless.zip" location="${basedir}/buckminster-headless.zip" />

<target name="unpack-director">
<unzip src="director_latest.zip" dest="${basedir}" />
</target>

<target name="build" depends="unpack-director">

<!-- Install Buckminster headless -->
<antcall target="install-iu" inheritall="true">
<param name="repo" value="${buckminster.headless.repo}" />
<param name="destination" value="${buckminster.headless}" />
<param name="profile" value="Buckminster" />
<param name="iu" value="org.eclipse.buckminster.cmdline.product" />
</antcall>

<!-- Install b3 headless -->
<antcall target="install-iu" inheritall="true">
<param name="repo" value="${b3.headless.repo}" />
<param name="destination" value="${buckminster.headless}" />
<param name="profile" value="b3" />
<param name="iu" value="org.eclipse.b3.cli.product" />
</antcall>

<!-- Install b3 headless (aggregator feature) -->
<antcall target="install-iu" inheritall="true">
<param name="repo" value="${b3.headless.repo}" />
<param name="destination" value="${buckminster.headless}" />
<param name="profile" value="b3" />
<param name="iu" value="org.eclipse.b3.aggregator.engine.feature.feature.group " />
</antcall>

<!-- Install Buckminster components -->
<antcall target="buckminster" inheritall="true">
<param name="buckminster.cmdline" value="install ${buckminster.headless.repo} org.eclipse.buckminster.core.headless.feature" />
</antcall>
<antcall target="buckminster" inheritall="true">
<param name="buckminster.cmdline" value="install ${buckminster.headless.repo} org.eclipse.buckminster.pde.headless.feature" />
</antcall>

<!-- Display contents of local Buckminster installation -->
<antcall target="buckminster" inheritall="true">
<param name="buckminster.cmdline" value="listsite" />
</antcall>

<zip basedir="${buckminster.headless}" destfile="${buckminster.headless.zip}" />
</target>

<target name="install-iu">
<!-- pick up the launcher jar -->
<pathconvert property="equinox.launcher.jar">
<first count="1">
<sort>
<fileset dir="${director}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar" />
<reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators ">
<date />
</reverse>
</sort>
</first>
</pathconvert>

<echo>Installing ${iu} from ${repo}</echo>

<java jar="${equinox.launcher.jar}" fork="true" failonerror="true">
<arg value="-r" />
<arg value="${repo}" />
<arg value="-d" />
<arg value="${destination}" />
<arg value="-p" />
<arg value="${profile}" />
<arg value="-i" />
<arg value="${iu}" />
<!-- jvmarg value="-Declipse.p2.data.area=${destination}/p2" / -->
</java>
</target>

<target name="buckminster">
<!-- pick up the launcher jar -->
<pathconvert property="buckminster.launcher.jar">
<first count="1">
<sort>
<fileset dir="${buckminster.headless}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar" />
<reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators ">
<date />
</reverse>
</sort>
</first>
</pathconvert>

<echo>Running Buckminster ${buckminster.cmdline}</echo>

<java jar="${buckminster.launcher.jar}" fork="true" failonerror="true">
<arg value="-application" />
<arg value="org.eclipse.buckminster.cmdline.headless" />
<arg value="--loglevel" />
<arg value="DEBUG" />
<arg value="-data" />
<arg value="${workspace}/headless-workspace" />
<arg line="${buckminster.cmdline}" />
<jvmarg value="-Xmx512m" />
</java>
</target>
</project>

--------------070601070902000508090907
Content-Type: text/plain;
name="build.properties"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="build.properties"

buckminster.headless.repo=http://download.eclipse.org/tools/buckminster/headless-3.6
b3.headless.repo=http://download.eclipse.org/modeling/emft/b3/headless-3.6

--------------070601070902000508090907--
Re: Problems configuring headless buckminster [message #640106 is a reply to message #639906] Fri, 19 November 2010 06:41 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
On 11/18/2010 12:08 PM, Jesper Eskilson wrote:
> On 11/17/2010 05:25 PM, Henrik Lindberg wrote:
>> Does not seem like you are getting very far and that something is
>> fundamentally wrong. How did you set up your headless buckminster?
>> Where did you get it from, and what did you do to configure it?
>
> See attached build.xml/build.properties.
>
> In short, I download director_latest.zip, and use it to install
>
> org.eclipse.buckminster.cmdline.product
> org.eclipse.b3.cli.product
> org.eclipse.b3.aggregator.engine.feature.feature.group
>
> Then the error appears when I try to install the
> org.eclipse.buckminster.core.headless.feature component into Buckminster.
>

The problem disappears if I don't install the
org.eclipse.b3.cli.product. Is it supposed to be possible to install
both buckminster and b3 commandlines in the same headless Eclipse?

--
Jesper Eskilson
Developer
IAR Systems
Re: Problems configuring headless buckminster [message #640111 is a reply to message #640106] Fri, 19 November 2010 06:55 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 11/19/2010 07:41 AM, Jesper Eskilson wrote:
> The problem disappears if I don't install the org.eclipse.b3.cli.product. Is it supposed to be possible to install both
> buckminster and b3 commandlines in the same headless Eclipse?
>
No, that's not supported. They are two distinct headless products. It would probably be possible to install the top
feature that one product relies on into the other product and thus get two applications in one headless install but I
don't think that's been tested.

- thomas
Re: Problems configuring headless buckminster [message #640113 is a reply to message #640111] Fri, 19 November 2010 07:11 Go to previous message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
On 11/19/2010 07:55 AM, Thomas Hallgren wrote:
> On 11/19/2010 07:41 AM, Jesper Eskilson wrote:
>> The problem disappears if I don't install the
>> org.eclipse.b3.cli.product. Is it supposed to be possible to install both
>> buckminster and b3 commandlines in the same headless Eclipse?
>>
> No, that's not supported. They are two distinct headless products. It
> would probably be possible to install the top feature that one product
> relies on into the other product and thus get two applications in one
> headless install but I don't think that's been tested.
>
> - thomas
>

Ok, thanks.

--
Jesper Eskilson
Developer
IAR Systems
Previous Topic:How to export feature with option "include source in exported plug-in"
Next Topic:p2 touchpoints
Goto Forum:
  


Current Time: Tue Apr 23 08:25:35 GMT 2024

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

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

Back to the top