Do you see any errors in the Problems view?

I think you need to set your source level to 1.5+. Go to
Preferences->Java->Compiler and set your source level to at least 1.5.
Post back here if that doesn't help.

On Mon, Jul 20, 2009 at 9:36 AM, mem <[email protected]> wrote:

>
> Good afternoon all. I am new to GWT and java developing itself.
> I have created a java application I wish to turn into an AJAX app via
> the magic of GWT.
>
> Versions:
> Eclipse SDK  3.4.2
> gwt-windows-1.7.0
> jdk1.6.0_14
>
> Followed this: http://code.google.com/webtoolkit/gettingstarted.html
> and the non-eclipse part worked fine.
>
> Following: "Creating an Application from Scratch (with Eclipse)"
> and it fails with:
> "Syntax error, annotations are only available if source level is 1.5"
>
> in the error log, I click proceed anyway and the Web Application
> Starter Project pops up. Click Send and I get:
> Server replies:
> An error occurred while attempting to contact the server. Please check
> your network connection and try again.
>
>
> and on the console in eclipse I get:
> The server is running at http://localhost:8080/
> 20/07/2009 9:33:18 AM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: Nested in javax.servlet.ServletException: init:
> java.lang.Error: Unresolved compilation problem:
>        Syntax error, annotations are only available if source level is 1.5
>
>        at test2.server.GreetingServiceImpl.<init>(GreetingServiceImpl.java:
> 9)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>        at java.lang.reflect.Constructor.newInstance(Unknown Source)
>        at java.lang.Class.newInstance0(Unknown Source)
>        at java.lang.Class.newInstance(Unknown Source)
>        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> (ServletHolder.java:339)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 463)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>        at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>        at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:124)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>        at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>        at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>        at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>        at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>        at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>        at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:313)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>        at org.mortbay.jetty.Server.handle(Server.java:313)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>        at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> 20/07/2009 9:33:18 AM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: /test2/greet
> java.lang.Error: Unresolved compilation problem:
>        Syntax error, annotations are only available if source level is 1.5
>
>        at test2.server.GreetingServiceImpl.<init>(GreetingServiceImpl.java:
> 9)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>        at java.lang.reflect.Constructor.newInstance(Unknown Source)
>        at java.lang.Class.newInstance0(Unknown Source)
>        at java.lang.Class.newInstance(Unknown Source)
>        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> (ServletHolder.java:339)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 463)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>        at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>        at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:124)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>        at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>        at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>        at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>        at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>        at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>        at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:313)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>        at org.mortbay.jetty.Server.handle(Server.java:313)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>        at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
>
>
>
>
> I have deleted my eclipse dir and retried with the same results.
>
> I would like to get eclipse working as google reccomends it and atm
> (for a newbie) it makes it easy for my to include external libraries
> which I havent gotten yet using the ant script on the cmd line.
>
>
> Thanks very much in advance for any help you guys/girls can offer :)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to