Error when running ant hosted on OS X 10.6

14 views
Skip to first unread message

Kyle Hayes

unread,
Nov 5, 2009, 3:25:30 PM11/5/09
to Google Web Toolkit
I created a new project from webAppCreator in OS X 10.6. It created
without any problems, however when I try to run the command "ant
hosted", I receive the following output:

-------------
hosted:
[java] On Mac OS X, ensure that you have Safari 3 installed.
[java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
Unable to load required native library 'gwt-ll'. Detailed error:
[java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt-
ll.dylib)
[java]
[java] Your GWT installation may be corrupt
[java] at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:
106)
[java] at com.google.gwt.dev.shell.mac.LowLevelSaf.init
(LowLevelSaf.java:135)
[java] at com.google.gwt.dev.BootStrapPlatform.initHostedMode
(BootStrapPlatform.java:68)
[java] at com.google.gwt.dev.HostedModeBase.<init>
(HostedModeBase.java:362)
[java] at com.google.gwt.dev.SwtHostedModeBase.<init>
(SwtHostedModeBase.java:127)
[java] at com.google.gwt.dev.HostedMode.<init>(HostedMode.java:
271)
[java] at com.google.gwt.dev.HostedMode.main(HostedMode.java:
230)
-------------

Any ideas on how to fix this? Thanks!

-Kyle

bmalkow

unread,
Nov 12, 2009, 3:43:12 AM11/12/09
to Google Web Toolkit

Jim Douglas

unread,
Nov 12, 2009, 4:04:49 AM11/12/09
to Google Web Toolkit
Same crash here trying to start hosted mode inside Eclipse using Mac
OS X Leopard after installing that Safari update. I added the first
part of my crash report to http://code.google.com/p/google-web-toolkit/issues/detail?id=4220.

bmalkow

unread,
Nov 12, 2009, 4:28:21 AM11/12/09
to Google Web Toolkit
I have solution for it. UGLY UGLY UGLY solution, but it allows me to
work until problem is not fixed:

Index: dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java
===================================================================
--- dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java
(revision 6868)
+++ dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java (working
copy)
@@ -89,7 +89,7 @@

public static native void gcProtect(int jsContext, int jsValue);

- public static native void gcUnprotect(int jsContext, int jsValue);
+ public static void gcUnprotect(int jsContext, int jsValue){}

public static native int getArgc();

Kyle Hayes

unread,
Nov 12, 2009, 12:25:30 PM11/12/09
to Google Web Toolkit
Heh, you're right this is really ugly. However, it may be worth a try,
but not on my work code ;-)

bmalkow

unread,
Nov 13, 2009, 5:25:00 AM11/13/09
to Google Web Toolkit
On 12 Lis, 18:25, Kyle Hayes <kyle.ha...@disney.com> wrote:
> Heh, you're right this is really ugly. However, it may be worth a try,
> but not on my work code ;-)

I use it only on development enviroment.
To production I use original GWT.

Someone else thinks similar to me
http://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-update.html
;)

Kyle Hayes

unread,
Nov 13, 2009, 10:41:56 AM11/13/09
to Google Web Toolkit
I installed your new jar and I'm still getting the following error:
==============
hosted:
[java] On Mac OS X, ensure that you have Safari 3 installed.
[java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
Unable to load required native library 'gwt-ll'. Detailed error:
[java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt-
ll.dylib)
[java]
[java] Your GWT installation may be corrupt
[java] at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:
106)
[java] at com.google.gwt.dev.shell.mac.LowLevelSaf.init
(LowLevelSaf.java:135)
[java] at com.google.gwt.dev.BootStrapPlatform.initHostedMode
(BootStrapPlatform.java:68)
[java] at com.google.gwt.dev.HostedModeBase.<init>
(HostedModeBase.java:362)
[java] at com.google.gwt.dev.SwtHostedModeBase.<init>
(SwtHostedModeBase.java:127)
[java] at com.google.gwt.dev.HostedMode.<init>(HostedMode.java:
271)
[java] at com.google.gwt.dev.HostedMode.main(HostedMode.java:
230)
==============

Here is my install location contents:
==============
$ ls /usr/local/gwt-mac-1.7.1/
COPYING gwt-dev-mac.jar libgwt-ll.jnilib
COPYING.html gwt-dev-mac.jar.bak libswt-agl-carbon-3235.jnilib
about.html gwt-module.dtd libswt-carbon-3235.jnilib
about.txt gwt-servlet.jar libswt-pi-carbon-3235.jnilib
benchmarkViewer gwt-user.jar libswt-webkit-carbon-3235.jnilib
doc i18nCreator release_notes.html
gwt-api-checker.jar index.html samples
gwt-benchmark-viewer.war junitCreator webAppCreator
==============

The gwt-dev-mac.jar.bak is the old jar and the non.bak is the
*patched* one. Yet the error is still complaining about not finding
libgwt-ll.dylib.
> Someone else thinks similar to mehttp://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-upda...
> ;)

bmalkow

unread,
Nov 14, 2009, 3:27:55 AM11/14/09
to Google Web Toolkit
On 13 Lis, 16:41, Kyle Hayes <kyle.ha...@disney.com> wrote:
> I installed your new jar and I'm still getting the following error:


This is not my jar. ;)

I checked out releases/1.7 from GWT svn and I compiled it myself. Then
I use whole generated GWT distro, not only new JAR.


If You don't want build GWT yourself I can send You my.

Hayes, Kyle

unread,
Nov 14, 2009, 3:45:55 AM11/14/09
to google-we...@googlegroups.com
Yes that would be great!

On Nov 14, 2009, at 12:28 AM, "bmalkow" <bartosz....@gmail.com>
wrote:
> --
>
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com
> .
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=
> .
>
>

bmalkow

unread,
Nov 14, 2009, 4:09:20 AM11/14/09
to Google Web Toolkit
On 14 Lis, 09:45, "Hayes, Kyle" <Kyle.Ha...@disney.com> wrote:
> Yes that would be great!

http://demo.ovh.net/download/d3c8cd1708cabf4e6bbb24fe2eef8b53/gwt-mac-1.7.1-bmalkow.tar.gz

file will be available for: 4 days, 23 hours, 58 minutes

julian

unread,
Nov 14, 2009, 11:33:12 AM11/14/09
to Google Web Toolkit
Can be that (10.6.1, safari 4) uses 64bit architecture instead 32?
Have a look to: http://kb2.adobe.com/cps/509/cpsid_50983.html

Chris Ramsdale

unread,
Nov 14, 2009, 8:09:43 PM11/14/09
to Google Web Toolkit
Thanks for all of your input regarding this issue. We were able to
reproduce the problem and have found that it is a result of an issue
within the 4.0.4 version of JavaScriptCore. We have reported the issue
to the WebKit team (http://trac.webkit.org/changeset/50964) and an
update was made but it will take some time to work it's way into
another Safari update. In the meantime to continue using GWT 1.7.1,
and prior, the safest workaround would be to revert back to Safari
4.0.3. The patches that have be suggested within this thread will work
but may result in other inconsistencies as objects are not properly
being released.

I have also tested out the latest MS2 release of GWT using 4.0.4 and
had no issues running in hosted mode (now referred to as Development
Mode). GWT MS2 is available here:
http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2.0+Milestone+2

I will keep everyone posted with any further updates.

- Chris


On Nov 14, 11:33 am, julian <juliatiup...@gmail.com> wrote:
> Can be that (10.6.1, safari 4) uses 64bit architecture instead 32?
> Have a look to:http://kb2.adobe.com/cps/509/cpsid_50983.html
>
> On Nov 13, 4:41 pm, Kyle Hayes <kyle.ha...@disney.com> wrote:
>
>
>
> > I installed your new jar and I'm still getting the followingerror:
> > ==============
> >hosted:
> >      [java] On MacOSX, ensure that you have Safari 3 installed.
> > *patched* one. Yet theerroris still complaining about not finding

Zak

unread,
Nov 17, 2009, 12:52:16 PM11/17/09
to Google Web Toolkit
I've reverted to Safari 4.0.3 using a Time Machine backup (just
replacing Safari.app) and it has not fixed the problem. Based on this
Apple support thread — http://discussions.apple.com/thread.jspa?threadID=2032790&tstart=0
— it seems to truly revert you'd need to restore your entire system to
before 4.0.4 was installed (if you have Time Machine set up).

I can't say if that will work for sure because I don't want to revert
my entire system, but I figured someone might want to know :).

On Nov 14, 8:09 pm, Chris Ramsdale <cramsd...@google.com> wrote:
> Thanks for all of your input regarding this issue. We were able to
> reproduce the problem and have found that it is a result of an issue
> within the 4.0.4 version of JavaScriptCore. We have reported the issue
> to the WebKit team (http://trac.webkit.org/changeset/50964) and an
> update was made but it will take some time to work it's way into
> another Safari update. In the meantime to continue using GWT 1.7.1,
> and prior, the safest workaround would be to revert back to Safari
> 4.0.3. The patches that have be suggested within this thread will work
> but may result in other inconsistencies as objects are not properly
> being released.
>
> I have also tested out the latest MS2 release of GWT using 4.0.4 and
> had no issues running in hosted mode (now referred to as Development
> Mode). GWT MS2 is available here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2....

Kyle Hayes

unread,
Nov 17, 2009, 1:00:49 PM11/17/09
to Google Web Toolkit
My experience was much worse when reverting to 4.0.3. My Mac would no
longer boot up and got stuck on the Apple loading screen. I zapped the
PRAM, attempted to boot in safe mode, repaired disk permission, even
re-installed OS X. I'm now at the point of just reformatted my drive
and am installing OS X fresh. Luckily I was able to boot into Target
Disk Mode last night to back up the drive.

Jim Douglas

unread,
Nov 17, 2009, 1:03:55 PM11/17/09
to Google Web Toolkit

Zak

unread,
Nov 17, 2009, 2:13:19 PM11/17/09
to Google Web Toolkit
Thanks Jim, that works perfectly!
Reply all
Reply to author
Forward
0 new messages