On Apr 23, 1:33 pm, Rajeev Dayal <rda...@google.com> wrote:
> If you're on a Mac and you're using GWT, you must use JDK 1.5. To make sure
> that ant is actually using your 1.5 JDK, can you set the JAVA_HOME
> environment variable to point to the 1.5 JDK, and try re-running ant hosted?
>
> On Thu, Apr 23, 2009 at 2:25 PM, Rob Tanner <caspersg...@gmail.com> wrote:
>
> > On Apr 23, 10:36 am, Rajeev Dayal <rda...@google.com> wrote:
> > > What version of the JDK are you using on your Mac? Are you using Java 1.6
> > or
> > > Java 1.5?
>
> > > On Thu, Apr 23, 2009 at 1:27 PM, Rob Tanner <caspersg...@gmail.com>
> > wrote:
>
> > > > On Apr 23, 1:13 am, Salvador Diaz <diaz.salva...@gmail.com> wrote:
> > > > > That stack trace is related to the app engine sdk, are you sure you
> > > > > want to use it ?
>
> > > > > To further explain the problem: I've seen the same exception in a
> > post
> > > > > a couple of days ago here, the poster eventually found out that he
> > > > > needed a xerces jar in his classpath and that solved the issue (look
> > > > > at the cause of the exception at the bottom of the snippet below)
>
> > > > > Hope it helps,
>
> > > > > Salvador
>
> > > > > > java.lang.RuntimeException: Unexpected exception
> > > > > >         at com.google.appengine.tools.enhancer.Enhancer.execute
> > > > > > (Enhancer.java:59)
> > > > > >         at com.google.appengine.tools.enhancer.Enhance.<init>
> > > > > > (Enhance.java:60)
> > > > > >         at com.google.appengine.tools.enhancer.Enhance.main
> > > > > > (Enhance.java:41)
> > > > > > Caused by: java.lang.reflect.InvocationTargetException
> > > > > >         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:585)
> > > > > >         at com.google.appengine.tools.enhancer.Enhancer.execute
> > > > > > (Enhancer.java:57)
> > > > > >         ... 2 more
> > > > > > Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
> > > > > > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
> > > > > >         at javax.xml.parsers.DocumentBuilderFactory.newInstance
> > > > > > (DocumentBuilderFactory.java:104)
>
> > > > No reason to use the app engine sdk one way or the other.  What I'm
> > > > really trying to figure out is why GWT for Macs appears to be trying
> > > > to use Linux GTK libraries instead of Mac Carbon libraries.
>
> > > > -- Rob
>
> > Actually, switching to 1.6 is simply a prefrence so I tried it.  ant
> > hosted still fails with the same error.

Through varios symlinks, I was already using 1.5.  But just to be
sure, I took your suggestion and set  JAVA_HOME to /System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Home.  Alas, same error.
The question in my mind is why does ant hosted complain about not
being able find swt-pi-gtk-3062 since this is a Mac and it doesn't use
gtk.  Shouldn't it be looking for a carbon library.  And yes, I'm
using gwt-mac-1.6.4.

-- Rob
--~--~---------~--~----~------------~-------~--~----~
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-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to