Browser Widget Issue on Ubuntu Gusty Gibbon

25 views
Skip to first unread message

Lucas de Oliveira

unread,
Aug 14, 2007, 1:06:56 PM8/14/07
to Google Web Toolkit
Hi there!
I'm struggling make the gwt browser to work on Ubuntu Gusty Gibbon but
everytime I try that I get the following error:

[ERROR] The browser widget class could not be instantiated
org.eclipse.swt.SWTError: No more handles
(java.lang.UnsatisfiedLinkError: /opt/devtools/libs/gwt-linux-1.3.3/
mozilla-1.7.12/libxpcom.so: libplds4.so: cannot open shared object
file: No such file or directory)
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:184)
at com.google.gwt.dev.shell.BrowserWidget.<init>(BrowserWidget.java:
236)
at
com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java:
72)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget(PlatformSpecific.java:
53)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
485)
Caused by: java.lang.UnsatisfiedLinkError: /opt/devtools/libs/gwt-
linux-1.3.3/mozilla-1.7.12/libxpcom.so: libplds4.so: cannot open
shared object file: No such file or directory
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:168)
at com.google.gwt.dev.shell.BrowserWidget.<init>(BrowserWidget.java:
236)
at
com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java:
72)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

By the way: both libxpcom.so and libplds4.so are on /opt/devtools/libs/
gwt-linux-1.3.3/mozilla-1.7.12/ so it's probably not a "No such file
or directory" problem.

any ideas?

thanks in advance!

James Abley

unread,
Aug 15, 2007, 8:40:49 AM8/15/07
to Google-We...@googlegroups.com

By you stating that they are there, I'm assuming that you mean they
exist, they aren't broken symlinks and that you have the correct
permissions to access said files.

>
> any ideas?

Brute force. This is open source - attach a debugger with a breakpoint
in BrowserWidget and see what is happening.

Cheers,

James

Sumit Chandel

unread,
Aug 15, 2007, 1:35:02 PM8/15/07
to Google-We...@googlegroups.com
Hi Lucas,

This is a well known problem with how some distributions configure the Eclipse libraries used by GWT.  Here, these previous group threads where other people discussed this problem might help you:

http://groups.google.com/group/Google-Web-Toolkit/search?group=Google-Web-Toolkit&q=no+more+handles&qt_g=Search+this+group

Hope that helps,
-Sumit Chandel

>         at com.google.gwt.dev.shell.BrowserWidget .<init>(BrowserWidget.java:

> 236)
>         at
> com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java:
> 72)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:
> 39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
> 27)
>         at java.lang.reflect.Constructor.newInstance (Constructor.java:513)
Reply all
Reply to author
Forward
0 new messages