Eclim Failed to start on Redhat Enterprise Linux Server

124 views
Skip to first unread message

Zou Zhi Le

unread,
Oct 31, 2011, 3:05:43 AM10/31/11
to eclim-user
I have a desktop machine installed with the RHEL server. I have
eclipse 3.7, java 1.6.0_25, and vim 7.3 installed. I followed
http://eclim.org/guides/install.html to install eclim, everything goes
pretty fine during the booting process. But when I tried to launch to
eclimd daemon, it couldn't start due to some errors. The error
messages printed to log file is pasted here. How could I fix that
please? thanks.

One thing I should mention is that initially eclipse can't find the
right JVM to boot, so I added "-vm path_to_jre_bin" in the eclipse.ini
file. After that, eclipse starts GUI without any problem.

Error Logs:
==============================================================================
!SESSION 2011-10-30 23:57:17.757
-----------------------------------------------
eclipse.buildId=M20110909-1335
java.version=1.6.0_25
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -refresh -application
org.eclim.application_headless
Command-line arguments: -debug -clean -refresh -application
org.eclim.application_headless

!ENTRY org.eclipse.osgi 2 0 2011-10-30 23:57:23.576
!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 2011-10-30 23:57:23.576
!MESSAGE Bundle
org.eclipse.core.filesystem.linux.x86_64_1.2.0.v20110423-0524 [61] was
not resolved.
!SUBENTRY 2 org.eclipse.core.filesystem.linux.x86_64 2 0 2011-10-30
23:57:23.577
!MESSAGE Platform filter did not match: (& (osgi.os=linux)
(osgi.arch=x86_64))
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-10-30 23:57:23.577
!MESSAGE Bundle org.eclipse.core.net.linux.x86_64_1.1.0.I20110331-0827
[64] was not resolved.
!SUBENTRY 2 org.eclipse.core.net.linux.x86_64 2 0 2011-10-30
23:57:23.577
!MESSAGE Platform filter did not match: (& (osgi.os=linux)
(osgi.arch=x86_64))
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-10-30 23:57:23.577
!MESSAGE Bundle
org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 [144]
was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.gtk.linux.x86_64 2 0
2011-10-30 23:57:23.577
!MESSAGE Platform filter did not match: (& (osgi.ws=gtk)
(osgi.os=linux) (osgi.arch=x86_64))
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-10-30 23:57:23.577
!MESSAGE Bundle org.eclipse.swt.gtk.linux.x86_64_3.7.1.v3738a [283]
was not resolved.
!SUBENTRY 2 org.eclipse.swt.gtk.linux.x86_64 2 0 2011-10-30
23:57:23.577
!MESSAGE Platform filter did not match: (& (osgi.ws=gtk)
(osgi.os=linux) (osgi.arch=x86_64))

!ENTRY org.eclipse.osgi 2 0 2011-10-30 23:57:23.751
!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 2011-10-30 23:57:23.751
!MESSAGE Bundle
org.eclipse.core.filesystem.linux.x86_64_1.2.0.v20110423-0524 [61] was
not resolved.
!SUBENTRY 2 org.eclipse.core.filesystem.linux.x86_64 2 0 2011-10-30
23:57:23.751
!MESSAGE Platform filter did not match: (& (osgi.os=linux)
(osgi.arch=x86_64))
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-10-30 23:57:23.751
!MESSAGE Bundle org.eclipse.core.net.linux.x86_64_1.1.0.I20110331-0827
[64] was not resolved.
!SUBENTRY 2 org.eclipse.core.net.linux.x86_64 2 0 2011-10-30
23:57:23.751
!MESSAGE Platform filter did not match: (& (osgi.os=linux)
(osgi.arch=x86_64))
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-10-30 23:57:23.751
!MESSAGE Bundle
org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 [144]
was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.gtk.linux.x86_64 2 0
2011-10-30 23:57:23.751
!MESSAGE Platform filter did not match: (& (osgi.ws=gtk)
(osgi.os=linux) (osgi.arch=x86_64))
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-10-30 23:57:23.751
!MESSAGE Bundle org.eclipse.swt.gtk.linux.x86_64_3.7.1.v3738a [283]
was not resolved.
!SUBENTRY 2 org.eclipse.swt.gtk.linux.x86_64 2 0 2011-10-30
23:57:23.751
!MESSAGE Platform filter did not match: (& (osgi.ws=gtk)
(osgi.os=linux) (osgi.arch=x86_64))

!ENTRY org.eclipse.osgi 4 0 2011-10-30 23:57:23.751
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in "org.eclim" was unable
to instantiate class "org.eclim.eclipse.EclimApplicationHeadless".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:
194)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
188)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:
905)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:
243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:
55)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
191)
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:
344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:
622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/
Display
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:
2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
184)
... 16 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.swt.widgets.Display
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:
513)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
429)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:
107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 22 more

!ENTRY org.eclipse.osgi 2 0 2011-10-30 23:57:23.768
!MESSAGE Info: cycle(s) found while stopping bundles:
[[ch.qos.logback.classic,org.eclipse.m2e.logback.appender,org.slf4j.api,ch.qos.logback.slf4j,org.jboss.netty,com.ning.async-
http-
client,org.eclipse.m2e.maven.runtime,org.eclipse.m2e.archetype.common,org.eclipse.m2e.maven.indexer,org.eclipse.m2e.core,org.eclipse.m2e.core.ui]].

Eric Van Dewoestine

unread,
Oct 31, 2011, 10:40:42 AM10/31/11
to eclim...@googlegroups.com
On 2011-10-31 00:05:43, Zou Zhi Le wrote:
> I have a desktop machine installed with the RHEL server. I have
> eclipse 3.7, java 1.6.0_25, and vim 7.3 installed. I followed
> http://eclim.org/guides/install.html to install eclim, everything goes
> pretty fine during the booting process. But when I tried to launch to
> eclimd daemon, it couldn't start due to some errors. The error
> messages printed to log file is pasted here. How could I fix that
> please? thanks.
>
> One thing I should mention is that initially eclipse can't find the
> right JVM to boot, so I added "-vm path_to_jre_bin" in the eclipse.ini
> file. After that, eclipse starts GUI without any problem.
>
> Error Logs:
> ==============================================================================
> !SESSION 2011-10-30 23:57:17.757
> -----------------------------------------------
> eclipse.buildId=M20110909-1335
> java.version=1.6.0_25
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Framework arguments: -refresh -application
> org.eclim.application_headless
> Command-line arguments: -debug -clean -refresh -application
> org.eclim.application_headless
>
> ...

> Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/
> Display
> ...

Odd, it looks like the swt classes (Display in particular) aren't
being found. Did you install eclipse via a package manager or did you
use a version from eclipse.org? My guess would be you used a package
manager and it installed the swt classes somewhere outside of its
normal location in the eclipse plugins directory, and those classes
are not in the classpath when eclimd starts.

Can you post the result of running the following in a shell:
$ echo $CLASSPATH

Can you also see if you can track down where the swt classes are
getting installed? Maybe start by searching your package manager for
"swt" (a quick google search indicates the package may be call
eclipse-swt).

--
eric

Zou Zhi Le

unread,
Oct 31, 2011, 11:04:34 PM10/31/11
to eclim-user
It turns out that my RHEL is 64-bit, JVM is 32-bit, and eclipse is 64-
bit. So eclipse may have some compatibility issue with the JVM. I
changed to eclipse 32-bit, and now it works. Although not a big issue,
it would be nice if the compatibility can be checked during eclim
installation.

Many thanks.

On Oct 31, 10:40 pm, Eric Van Dewoestine <ervan...@gmail.com> wrote:
> On 2011-10-31 00:05:43, Zou Zhi Le wrote:
>
>
>
>
>
>
>
>
>
> > I have a desktop machine installed with the RHEL server. I have
> > eclipse 3.7, java 1.6.0_25, and vim 7.3 installed. I followed
> >http://eclim.org/guides/install.htmlto install eclim, everything goes

Zou Zhi Le

unread,
Oct 31, 2011, 11:09:16 PM10/31/11
to eclim-user
By the way, below is some hints to check the platform type.

Linux: uname -m
JVM: java -d64 -version or java -d32 -version
Eclipse: file $ECLIPSE_HOME/eclipse

On Nov 1, 11:04 am, Zou Zhi Le <zouzh...@gmail.com> wrote:
> It turns out that my RHEL is 64-bit, JVM is 32-bit, and eclipse is 64-
> bit. So eclipse may have some compatibility issue with the JVM. I
> changed to eclipse 32-bit, and now it works. Although not a big issue,
> it would be nice if the compatibility can be checked during eclim
> installation.
>
> Many thanks.
>
> On Oct 31, 10:40 pm, Eric Van Dewoestine <ervan...@gmail.com> wrote:
>
>
>
>
>
>
>
> > On 2011-10-31 00:05:43, Zou Zhi Le wrote:
>
> > > I have a desktop machine installed with the RHEL server. I have
> > > eclipse 3.7, java 1.6.0_25, and vim 7.3 installed. I followed
> > >http://eclim.org/guides/install.htmltoinstall eclim, everything goes

Eric Van Dewoestine

unread,
Nov 1, 2011, 10:21:17 AM11/1/11
to eclim...@googlegroups.com
On 2011-10-31 20:04:34, Zou Zhi Le wrote:
> It turns out that my RHEL is 64-bit, JVM is 32-bit, and eclipse is 64-
> bit. So eclipse may have some compatibility issue with the JVM. I
> changed to eclipse 32-bit, and now it works.

Ah, that makes sense. Glad you were able to track that down.

> Although not a big issue,
> it would be nice if the compatibility can be checked during eclim
> installation.

Actually, for OSX I already had a check at eclimd startup that handled
the mismatch between the jvm and eclipse binaries, so I just
updated[1] the eclimd script to check on all unix platforms, not just
OSX.

[1] https://github.com/ervandew/eclim/commit/519d925e17e5a4fe9de03ba73859074e99b5a9ef

> Many thanks.


--
eric

Reply all
Reply to author
Forward
0 new messages