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 <[email protected]> wrote: > > > > On Apr 23, 10:36 am, Rajeev Dayal <[email protected]> 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 <[email protected]> > wrote: > > > > > On Apr 23, 1:13 am, Salvador Diaz <[email protected]> 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. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
