Headless build on Windows using a Linux Galileo platform + Delta Pack [message #468203] |
Tue, 04 August 2009 10:08  |
Eclipse User |
|
|
|
Hello,
I am trying to build headlessly an RCP product.
My platform is an Eclipse SDK (linux) + Delta Pack. I want to be able to use the same eclipse for all OS, and I could successfully achieve it before with Ganymede. But now, when fetching using this base under Windows, I get:
[java] !ENTRY org.eclipse.osgi 4 0 2009-08-04 15:17:20.984
[java] !MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (172).
[java] !STACK 0
[java] org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
[java] at org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:157)
[java] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:750)
[....]
[java] Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
[java] at java.lang.Class.getDeclaredConstructors0(Native Method)
[java] at java.lang.Class.privateGetDeclaredConstructors(Class.java:23 57)
[java] at java.lang.Class.getConstructor0(Class.java:2671)
[java] at java.lang.Class.newInstance0(Class.java:321)
[java] at java.lang.Class.newInstance(Class.java:303)
[java] at org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:152)
[java] ... 61 more
and
[java] !ENTRY org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !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:
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.core.filesystem.linux.x86_1.2.0.v20080604-1400 [28] was not resolved.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.core.net.linux.x86_1.1.0.I20081021 [31] was not resolved.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520 [62] was not resolved.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090526-2130 [101] was not resolved.
[java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
[java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
[java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
[java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.jdt.compiler.apt_1.0.200.v20090528-1135 [103] was not resolved.
[java] !SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_963 [104] was not resolved.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.swt.gtk.linux.x86_3.5.0.v3550b [146] was not resolved.
[java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
[java] !MESSAGE Bundle org.eclipse.update.core.linux_3.2.100.v20081008 [177] was not resolved.
I invoke the build using Equinox launcher and antRunner. As you can see, even under Windows, my platform tries to load some Linux bundles..
Can anyone explain me why the antRunner application wants some Linux-specific bundkes? Or, better, how can I get it working?
Thanks
Mickael
|
|
|
Re: Headless build on Windows using a Linux Galileo platform + Delta Pack [message #481937 is a reply to message #468203] |
Mon, 24 August 2009 15:06  |
Eclipse User |
|
|
|
These kinds of messages are more or less expected when running a install
on a different platform. But, beyond all the noise, they shouldn't stop
the headless ant from running.
Any given install lists out the plugins that are supposed to be in the
running eclipse, the linux bundles are in the list, and obviously they
won't resolve when running on windows. The unresolved
org.eclipse.swt.gtk.linux.x86 is the cause of the activator failure.
The workbench is getting indirectly activated because of the way the
classloaders are managed to enable plug-ins to contribute ant tasks.
One of the plug-ins that contribute extra stuff to ant is
org.eclipse.ant.ui and loading classes from it will cause the workbench
to get activated.
Normally having the deltapack should get rid of these errors, but you
are probably hitting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=248578. Try removing the
org.eclipse.equinox.executable from the features directory.
-Andrew
Mickael Istria wrote:
> Hello,
>
> I am trying to build headlessly an RCP product.
> My platform is an Eclipse SDK (linux) + Delta Pack. I want to be able to
> use the same eclipse for all OS, and I could successfully achieve it
> before with Ganymede. But now, when fetching using this base under
> Windows, I get:
>
> [java] !ENTRY org.eclipse.osgi 4 0 2009-08-04 15:17:20.984
> [java] !MESSAGE An error occurred while automatically activating
> bundle org.eclipse.ui.workbench (172).
> [java] !STACK 0
> [java] org.osgi.framework.BundleException: The activator
> org.eclipse.ui.internal.WorkbenchPlugin for bundle
> org.eclipse.ui.workbench is invalid
> [java] at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:157)
>
> [java] at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:750)
>
> [....]
> [java] Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/swt/SWTError
> [java] at java.lang.Class.getDeclaredConstructors0(Native Method)
> [java] at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:23 57)
> [java] at java.lang.Class.getConstructor0(Class.java:2671)
> [java] at java.lang.Class.newInstance0(Class.java:321)
> [java] at java.lang.Class.newInstance(Class.java:303)
> [java] at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:152)
>
> [java] ... 61 more
>
> and
>
> [java] !ENTRY org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !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:
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle
> org.eclipse.core.filesystem.linux.x86_1.2.0.v20080604-1400 [28] was not
> resolved.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle
> org.eclipse.core.net.linux.x86_1.1.0.I20081021 [31] was not resolved.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle
> org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520 [62] was
> not resolved.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle
> org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090526-2130 [101] was not
> resolved.
> [java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04
> 15:17:21.843
> [java] !MESSAGE Missing imported package
> org.eclipse.jdt.internal.compiler.tool_0.0.0.
> [java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04
> 15:17:21.843
> [java] !MESSAGE Missing imported package
> org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
> [java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04
> 15:17:21.843
> [java] !MESSAGE Missing imported package
> org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
> [java] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-08-04
> 15:17:21.843
> [java] !MESSAGE Missing imported package
> org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle
> org.eclipse.jdt.compiler.apt_1.0.200.v20090528-1135 [103] was not resolved.
> [java] !SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-08-04
> 15:17:21.843
> [java] !MESSAGE Missing imported package
> org.eclipse.jdt.internal.compiler.tool_0.0.0.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_963
> [104] was not resolved.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle org.eclipse.swt.gtk.linux.x86_3.5.0.v3550b
> [146] was not resolved.
> [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-08-04 15:17:21.843
> [java] !MESSAGE Bundle
> org.eclipse.update.core.linux_3.2.100.v20081008 [177] was not resolved.
>
> I invoke the build using Equinox launcher and antRunner. As you can see,
> even under Windows, my platform tries to load some Linux bundles..
> Can anyone explain me why the antRunner application wants some
> Linux-specific bundkes? Or, better, how can I get it working?
>
> Thanks
> Mickael
|
|
|
Powered by
FUDForum. Page generated in 0.02476 seconds