Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Building with Buckminster in Helios
Building with Buckminster in Helios [message #552118] Tue, 10 August 2010 22:25 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Hi,

I've successfully been building my product using Buckminster 3.5 using 3.4 target platform. After upgrading to 3.6 (I am running build in Eclipse Helios IDE), my builds are successful, but when I launch application it fails to launch and I get this error in my log:
!SESSION 2010-08-10 18:12:20.195 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
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}

!ENTRY org.eclipse.osgi 4 0 2010-08-10 18:12:20.961
!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (282).
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:146)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
	at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:443)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:188)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)
	... 35 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 41 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
	at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:443)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:188)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 41 more

!ENTRY org.eclipse.osgi 4 0 2010-08-10 18:12:20.977
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.ui.ide.application" was unable to instantiate class "org.eclipse.ui.internal.ide.application.IDEApplication".
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:188)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/application/WorkbenchAdvisor
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
	... 15 more
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.ui.workbench (282).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:125)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
	at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:443)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 21 more
Caused by: org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:146)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
	... 30 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)
	... 35 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 41 more

!ENTRY org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.core.filesystem.win32.x86_1.1.0.v20080604-1400.jar [77] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.core.net.win32.x86_1.0.0.I20080521.jar [80] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.core.resources.win32.x86_3.4.0.v20071204.jar [83] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731/ [145] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.security.win32.x86_1.0.0.v20080529-1600.jar [171] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.swt.win32.win32.x86_3.4.1.v3452b.jar [255] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.win32_3.2.100.v20080408-0800.jar [281] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
!MESSAGE Bundle reference:file:plugins/org.eclipse.update.core.win32_3.2.100.v20080107.jar [287] was not resolved.


Trying to solve this I looked in plugins directory and see org.eclipse.swt.win32.win32.x86_3.4.1.v3452b.jar and org.eclipse.swt_3.4.2.v3452b.jar present, so not sure how error "Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError" is getting thrown.

If I run the same thing in Galileo with Buckminster 3.5 build is successful and launching correctly.

Setting target platform to 3.4 and launching my product in IDE works.

Can someone help me understand what could be the problem?

thanks,
Alex
Re: Building with Buckminster in Helios [message #552230 is a reply to message #552118] Wed, 11 August 2010 11:27 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Alex,

There's a bug in the 3.6 director application that may give this symptom. It doesn't use the current defaults for os,ws,
and arch so installation will be flawed unless you explicitly pass the command line options -p2.os -p2.ws and -p2.arch.
The director call in the ant script used for building the product should contain something like:

<arg value="-p2.os"/>
<arg value="${p2.os}"/>
<arg value="-p2.ws"/>
<arg value="${p2.ws}"/>
<arg value="-p2.arch"/>
<arg value="${p2.arch}"/>

Some more info here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=318114

- thomas


On 08/11/2010 12:26 AM, Alex wrote:
> Hi,
>
> I've successfully been building my product using Buckminster 3.5 using
> 3.4 target platform. After upgrading to 3.6 (I am running build in
> Eclipse Helios IDE), my builds are successful, but when I launch
> application it fails to launch and I get this error in my log:
>
> !SESSION 2010-08-10 18:12:20.195
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_18
> java.vendor=Sun Microsystems Inc.
> 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}
>
> !ENTRY org.eclipse.osgi 4 0 2010-08-10 18:12:20.961
> !MESSAGE An error occurred while automatically activating bundle
> org.eclipse.ui.workbench (282).
> !STACK 0
> org.osgi.framework.BundleException: The activator
> org.eclipse.ui.internal.WorkbenchPlugin for bundle
> org.eclipse.ui.workbench is invalid
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:146)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:980)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:33)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:443)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> 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: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>
> ... 35 more
> Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> ... 41 more
> Root exception:
> java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:980)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:33)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:443)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> 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: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> ... 41 more
>
> !ENTRY org.eclipse.osgi 4 0 2010-08-10 18:12:20.977
> !MESSAGE Application error
> !STACK 1
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.eclipse.ui.ide.application" was unable to instantiate class
> "org.eclipse.ui.internal.ide.application.IDEApplication".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:174)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> 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: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/ui/application/WorkbenchAdvisor
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
>
> ... 15 more
> Caused by:
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.ui.workbench (282).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:33)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:443)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> ... 21 more
> Caused by: org.osgi.framework.BundleException: The activator
> org.eclipse.ui.internal.WorkbenchPlugin for bundle
> org.eclipse.ui.workbench is invalid
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:146)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:980)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> ... 30 more
> Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>
> ... 35 more
> Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> ... 41 more
>
> !ENTRY org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE The following is a complete list of bundles which are not
> resolved, see the prior log entry for the root cause if it exists:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.core.filesystem.win32.x86 _1.1.0.v20080604-1400.jar
> [77] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.core.net.win32.x86_1.0.0. I20080521.jar [80]
> was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.core.resources.win32.x86_ 3.4.0.v20071204.jar
> [83] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.equinox.launcher.win32.wi n32.x86_1.0.101.R34x_v20080731/
> [145] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.equinox.security.win32.x8 6_1.0.0.v20080529-1600.jar
> [171] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.swt.win32.win32.x86_3.4.1 .v3452b.jar
> [255] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.ui.win32_3.2.100.v2008040 8-0800.jar
> [281] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-10 18:12:21.086
> !MESSAGE Bundle
> reference:file:plugins/org.eclipse.update.core.win32_3.2.100 .v20080107.jar
> [287] was not resolved.
>
>
> Trying to solve this I looked in plugins directory and see
> org.eclipse.swt.win32.win32.x86_3.4.1.v3452b.jar and
> org.eclipse.swt_3.4.2.v3452b.jar present, so not sure how error "Caused
> by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError" is
> getting thrown.
>
> If I run the same thing in Galileo with Buckminster 3.5 build is
> successful and launching correctly.
>
> Setting target platform to 3.4 and launching my product in IDE works.
>
> Can someone help me understand what could be the problem?
>
> thanks,
> Alex
Re: Building with Buckminster in Helios [message #552276 is a reply to message #552230] Wed, 11 August 2010 14:49 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thanks Thomas,

But isn't there a call to set os, ws and arch in the ant script already? I have this
<java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
			<arg value="-application"/>
			<arg value="org.eclipse.equinox.p2.director"/>
			<arg value="-artifactRepository"/>
			<arg value="${repository}"/>
			<arg value="-metadataRepository"/>
			<arg value="${repository}"/>
			<arg value="-destination"/>
			<arg value="${destination}"/>
			<arg value="-bundlepool"/>
			<arg value="${destination}"/>
			<arg value="-profile"/>
			<arg value="${profile}"/>
			<arg value="-profileProperties" />
			<arg value="org.eclipse.update.install.features=true" />
			<arg value="-installIU"/>
			<arg value="${iu}"/>
			<arg value="-p2.os" />
			<arg value="${target.os}" />
			<arg value="-p2.ws" />
			<arg value="${target.ws}" />
			<arg value="-p2.arch" />
			<arg value="${target.arch}" />
			<arg value="-consoleLog"/>
			<jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
			<jvmarg value="-Declipse.p2.profile=${profile}"/>
		</java>

Where target.* are passed to the script during the build. Unless I don't full understand the solution.

Alex
Re: Building with Buckminster in Helios [message #552285 is a reply to message #552276] Wed, 11 August 2010 15:07 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 08/11/2010 04:49 PM, Alex wrote:
> Thanks Thomas,
>
> But isn't there a call to set os, ws and arch in the ant script already?
> I have this
>
> <java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
> <arg value="-application"/>
> <arg value="org.eclipse.equinox.p2.director"/>
> <arg value="-artifactRepository"/>
> <arg value="${repository}"/>
> <arg value="-metadataRepository"/>
> <arg value="${repository}"/>
> <arg value="-destination"/>
> <arg value="${destination}"/>
> <arg value="-bundlepool"/>
> <arg value="${destination}"/>
> <arg value="-profile"/>
> <arg value="${profile}"/>
> <arg value="-profileProperties" />
> <arg value="org.eclipse.update.install.features=true" />
> <arg value="-installIU"/>
> <arg value="${iu}"/>
> <arg value="-p2.os" />
> <arg value="${target.os}" />
> <arg value="-p2.ws" />
> <arg value="${target.ws}" />
> <arg value="-p2.arch" />
> <arg value="${target.arch}" />
> <arg value="-consoleLog"/>
> <jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
> <jvmarg value="-Declipse.p2.profile=${profile}"/>
> </java>
>
> Where target.* are passed to the script during the build. Unless I don't
> full understand the solution.
>
Building a product is a two step process.

In step 1 (the site.p2 action), the repository is built. It's common that this build executes with the properties
target.os, target.ws, and target.arch all set to '*' in order to do a platform independent result. By doing that, you
ensure that the repository can serve as the base for many products, each running on one of the supported platforms.

In step 2 (the create.product), the p2 director is called to install a product from the repository created in step 1.
This product must be created for a specific platform so here, you cannot pass '*' to the -p2.os, -p2.ws, and -p2.arch
options. You have to specify the intended platform. Perhaps you should use other property names then the ones prefixed
with 'target.' here.

- thomas
Re: Building with Buckminster in Helios [message #552313 is a reply to message #552285] Wed, 11 August 2010 16:45 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Sorry, I meant to say that I do pass "*" to target.os, target.ws and target.arch when I execute site.p2 action, and pass properties for platform that I want to build when I execute create.product action. That's how I have ti working in Hudson: site.p2 -> create.product.
Now, may be I was under wrong impression, but I thought that when I execute create.product action site.p2 is first executed because create.product's prerequisite on site.p2 in my buckminster.cpsex

<public name="create.product" actor="ant">
			<actorProperties>
				<property key="buildFile" value="build/product.ant" />
				<property key="targets" value="create.product" />
			</actorProperties>
			<properties>
				<property key="profile" value="iitProfile" />
				<property key="iu" value="iit.product" />
			</properties>
			<prerequisites alias="repository">
				<attribute name="site.p2" />
			</prerequisites>
			<products alias="destination" base="${buckminster.output}">
				<path path="integrationtools.${target.ws}.${target.os}.${target.arch}/" />
			</products>
		</public>

Edit:Yeah, I am wrong in this. How can it correctly execute site.p2 if I pass specific platform properties. Prerequisites means that this action must be have been executed before current runs.

But I might be wrong in this, because if I execute site.p2 action directly I get this error
No component named org.eclipse.swt.win32.win32.ia64:osgi.bundle(&(target.arch=ia64)(target.os=win32)) is known to Buckminster

I found this post that might be related to this: http://www.eclipse.org/forums/index.php?t=msg&goto=37775 2&
Buckminster installs delta pack itself as I understand, so I don't have to reference it in my target platform, but I downloaded it for Helios anyway and added it to my TP, but error still persists. So I checked delta pack and I don't see *ia64 anything there.

Doing the same thing, minus referencing delta pack in 3.5 produces p2 without errors and builds product.

thanks for your help,
Alex

[Updated on: Wed, 11 August 2010 17:07]

Report message to a moderator

Re: Building with Buckminster in Helios [message #552323 is a reply to message #552313] Wed, 11 August 2010 17:44 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Also noticed that this happens when I run on Windows. Doing this on Linux produces p2 and product with p2 not containing org.eclipse.swt.win32.win32.ia64. So maybe it's something with my particular Eclipse instance in Windows, not sure.

When I build I linux I have product building, but get the same error that I referenced in the beginning of this post.

[Updated on: Wed, 11 August 2010 17:46]

Report message to a moderator

Re: Building with Buckminster in Helios [message #552346 is a reply to message #552323] Wed, 11 August 2010 19:56 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
I looked at eclipse.ini from build done in Hudson using buckminster 3.6, contents of which are
-startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
-os
${target.os}
-ws
${target.ws}
-arch
${target.arch}
-nl
${target.nl}
-vmargs
-Xms256M
-Xmx768M
-XX:+UseParallelGC
-XX:MaxPermSize=128M

Those ${target* parameter variables are what seems to cause the errors that I reference in the beginning of the post. Altering the file to
-startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731

-vmargs
-Xms256M
-Xmx768M
-XX:+UseParallelGC
-XX:MaxPermSize=128M

fixes everything and product launches.
However, same build for linux platform does not product eclipse executable that can be ran. All I see are configuration, features, p2, plugins directories and artifacts.xml and eclipse.ini files that's all.

Changing the job in Hudson to use Buckminster 3.5 instead of 3.6 produces correct eclipse.ini and application starts.

thanks,
Alex
Re: Building with Buckminster in Helios [message #552356 is a reply to message #552346] Wed, 11 August 2010 20:45 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Seems the properties are not expanded which suggests that they are not passed on to the ant-script. What does the ant
actor look like?

-thomas

On 08/11/2010 09:56 PM, Alex wrote:
> I looked at eclipse.ini from build done in Hudson using buckminster 3.6,
> contents of which are
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125. jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101 .R34x_v20080731
> -os
> ${target.os}
> -ws
> ${target.ws}
> -arch
> ${target.arch}
> -nl
> ${target.nl}
> -vmargs
> -Xms256M
> -Xmx768M
> -XX:+UseParallelGC
> -XX:MaxPermSize=128M
>
> Those ${target* parameter variables are what seems to cause the errors
> that I reference in the beginning of the post. Altering the file to
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125. jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101 .R34x_v20080731
>
> -vmargs
> -Xms256M
> -Xmx768M
> -XX:+UseParallelGC
> -XX:MaxPermSize=128M
>
> fixes everything and product launches.
> However, same build for linux platform does not product eclipse
> executable that can be ran. All I see are configuration, features, p2,
> plugins directories and artifacts.xml and eclipse.ini files that's all.
>
> Changing the job in Hudson to use Buckminster 3.5 instead of 3.6
> produces correct eclipse.ini and application starts.
>
> thanks,
> Alex
Re: Building with Buckminster in Helios [message #552357 is a reply to message #552356] Wed, 11 August 2010 21:09 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
This is my cspex
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
	xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
	<actions>
		<!-- action to call postbuild target to remove j2ee.jar from com.iwaysoftware.eclipse.common -->
		<public name="post.build" actor="ant">
			<actorProperties>
				<property key="buildFile" value="build/product.ant" />
				<property key="targets" value="postbuild" />
			</actorProperties>
		</public>
		
		<!-- creates product from p2 repository -->
		<public name="create.product" actor="ant">
			<actorProperties>
				<property key="buildFile" value="build/product.ant" />
				<property key="targets" value="create.product" />
			</actorProperties>
			<properties>
				<property key="profile" value="iitProfile" />
				<property key="iu" value="iit.product" />
			</properties>
			<prerequisites alias="repository">
				<attribute name="site.p2" />
			</prerequisites>
			<products alias="destination" base="${buckminster.output}">
				<path path="integrationtools.${target.ws}.${target.os}.${target.arch}/" />
			</products>
		</public>
		
		<!-- creates zipped product -->
		<public name="create.product.zip" actor="ant">
			<actorProperties>
				<property key="buildFileId" value="buckminster.pdetasks" />
				<property key="targets" value="create.zip" />
			</actorProperties>
			<prerequisites alias="action.requirements">
				<attribute name="create.product" />
				<attribute name="post.build" />
			</prerequisites>
			<products alias="action.output" base="${buckminster.output}">
				<path
					path="integrationtools.${target.ws}.${target.os}.${target.arch}.zip" />
			</products>
		</public>
	</actions>
</cspecExtension>


thanks,
Alex
Re: Building with Buckminster in Helios [message #552385 is a reply to message #552357] Thu, 12 August 2010 02:36 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thomas,

I enabled DEBUG mode for Buckminster and it shows that os, ws and arch variables are being set
[start com.iwaysoftware.integration.tools.product:eclipse.feature$1.0.0.qualifier#create.product]
  Prerequisite alias = repository
  Product alias = destination
  Product base = ${buckminster.output}\
  target.arch=x86
  buckminster.component=com.iwaysoftware.integration.tools.product
  qualifier.replacement.*=generator:lastRevision
  workspace.root=C:/Users/akravets/dev/workspaces/helios.build
  buckminster.temp=c:/integratioTools/build/tmp/com.iwaysoftware.integration.tools.product_1.0.0-eclipse.feature/temp
  buckminster.home=C:\Users\akravets\dev\workspaces\helios.build\com.iwaysoftware.integration.tools.product\
  buckminster.output=c:/integratioTools/build/com.iwaysoftware.integration.tools.product_1.0.0-eclipse.feature
  buckminster.temp.root=c:\integratioTools\build\tmp
  localhost=win7
  generator.buildTimestamp.format=2010-08-12T02:33:09.026+0000
  buckminster.component.type=eclipse.feature
  buckminster.version=1.0.0.qualifier
  target.nl=en_US
  target.ws=win32
  eclipse.home=C:\Users\akravets\dev\apps\eclipse-helios
  profile=iitProfile
  iu=iit.product
  buckminster.output.root=c:\integratioTools\build
  target.os=win32
[ant] C:\Users\akravets\dev\apps\eclipse-helios\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar
[ant] file:/c:/integratioTools/build/com.iwaysoftware.integration.tools.product_1.0.0-eclipse.feature/site.p2/
[ant] c:\integratioTools\build\com.iwaysoftware.integration.tools.product_1.0.0-eclipse.feature\integrationtools.win32.win32.x86
[ant] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Target Variables @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[ant] win32
[ant] win32
[ant] x86
[end com.iwaysoftware.integration.tools.product:eclipse.feature$1.0.0.qualifier#create.product]

thanks,
Alex
Re: Building with Buckminster in Helios [message #552392 is a reply to message #552385] Thu, 12 August 2010 04:05 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Really odd indeed. The director apparently finds the unexpanded properties somewhere, or they would not show up in the
eclipse.ini file. They must be present in the content.jar that is generated by the site.p2 action. Can you have a look
and see if you can localize them there?

On 08/12/2010 04:36 AM, Alex wrote:
> Thomas,
>
> I enabled DEBUG mode for Buckminster and it shows that os, ws and arch
> variables are being set
>
> [start
> com.iwaysoftware.integration.tools.product:eclipse.feature$1 .0.0.qualifier#create.product]
>
> Prerequisite alias = repository
> Product alias = destination
> Product base = ${buckminster.output}\
> target.arch=x86
> buckminster.component=com.iwaysoftware.integration.tools.pro duct
> qualifier.replacement.*=generator:lastRevision
> workspace.root=C:/Users/akravets/dev/workspaces/helios.build
> buckminster.temp=c:/integratioTools/build/tmp/com.iwaysoftwa re.integration.tools.product_1.0.0-eclipse.feature/temp
>
> buckminster.home=C:\Users\akravets\dev\workspaces\helios.bui ld\com.iwaysoftware.integration.tools.product\
>
> buckminster.output=c:/integratioTools/build/com.iwaysoftware .integration.tools.product_1.0.0-eclipse.feature
>
> buckminster.temp.root=c:\integratioTools\build\tmp
> localhost=win7
> generator.buildTimestamp.format=2010-08-12T02:33:09.026+0000
> buckminster.component.type=eclipse.feature
> buckminster.version=1.0.0.qualifier
> target.nl=en_US
> target.ws=win32
> eclipse.home=C:\Users\akravets\dev\apps\eclipse-helios
> profile=iitProfile
> iu=iit.product
> buckminster.output.root=c:\integratioTools\build
> target.os=win32
> [ant]
> C:\Users\akravets\dev\apps\eclipse-helios\plugins\org.eclips e.equinox.launcher_1.1.0.v20100507.jar
>
> [ant]
> file:/c:/integratioTools/build/com.iwaysoftware.integration. tools.product_1.0.0-eclipse.feature/site.p2/
>
> [ant]
> c:\integratioTools\build\com.iwaysoftware.integration.tools. product_1.0.0-eclipse.feature\integrationtools.win32.win32.x 86
>
> [ant] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Target Variables
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> [ant] win32
> [ant] win32
> [ant] x86
> [end
> com.iwaysoftware.integration.tools.product:eclipse.feature$1 .0.0.qualifier#create.product]
>
>
> thanks,
> Alex
>
Re: Building with Buckminster in Helios [message #552558 is a reply to message #552392] Thu, 12 August 2010 15:52 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thomas,

Here is what content.xml looks like http://drop.io/content_xml. I am sure where I should look for properties expansion though.

thanks,
Alex

[Updated on: Thu, 12 August 2010 15:52]

Report message to a moderator

Previous Topic:Using "local" for cvs
Next Topic:org.eclipse.jdt.core version conflict installing Groovy support into headless buckminster 3.6
Goto Forum:
  


Current Time: Fri Apr 26 08:29:54 GMT 2024

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

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

Back to the top