Wow, thanks for this tip!  I've been meaning to explore App Engine,
and this gave me even more reason to.  I just tested it all out and it
works like a charm.  I was worried it wouldn't allow the quick
turnaround, but you can use GWT hosted mode with it.  They did a
really sweet job with this.

Thank you also for filing the bug report.  You got the gist of it.
It's not just generics, it's other 1.5+ features too (like "for each"
loops) but it's probably not a huge deal.

Thanks,
Ken

On Apr 15, 10:48 am, Miguel Méndez <[email protected]> wrote:
> It looks like it is a bug with Jetty instance used when a GWT-only web app
> has JSPs with generics.
> It does not appear that the App Engine
> devserver<http://code.google.com/appengine/docs/java/tools/devserver.html>
> has
> this problem.  I went ahead and filed a bug against GWT for this,
> Issue 3557<http://code.google.com/p/google-web-toolkit/issues/detail?id=3557>.
>  As a workaround, you could add App Engine to your project.
>
>
>
> On Wed, Apr 15, 2009 at 9:15 AM, Ken <[email protected]> wrote:
>
> > The app server is the one bundled with GWT hosted mode, I believe it's
> > Jetty.  If you use a servlet that has 1.5 stuff in it, it works fine.
> > When I was investigating, I noticed that the JSP does successfully
> > produce a servlet.  I copied this servlet and compiled it myself and
> > it worked fine, even in hosted mode.  I believe it's failing at the
> > point where the generated servlet (.java) is being compiled into a
> > class (.class).  Like you said, it seems like for some reason it's
> > targeting version 1.4 or something like that.  It's confusing though
> > that the problem is during compilation, because if you start with a
> > servlet (rather than a JSP) it compiles with no problem.
>
> > I have a feeling this might have something to do with it:
> >http://code.google.com/p/google-web-toolkit/source/detail?r=5109
>
> > It appears that something different happens underneath when a servlet
> > is compiled as opposed to when a servlet generated by a JSP is
> > compiled.
>
> > On Apr 15, 7:31 am, Salvador Diaz <[email protected]> wrote:
> > > It looks like the app server on which you're trying to load the jsp
> > > doesn't support java 1.5 or you compiled your jsp with 1.4 or
> > > something like that. Can't really tell without more details though. I
> > > hope that helps you.
>
> > > Cheers,
>
> > > Salvador
>
> > > On Apr 15, 4:13 am, Adrian <[email protected]> wrote:
>
> > > > Ok, so it's not just me!
>
> > > > Does anyone have any idea on how to go about finding an answer to this
> > > > problem? Even if you don't know the answer any suggestions are welcome
> > > > because this one has me stumped.
>
> > > > - Adrian
>
> > > > On Apr 14, 3:23 pm, Ken <[email protected]> wrote:
>
> > > > > I'm having the same exact problem.
> > > > > I've tried it on both Mac OS X and Windows.
>
> --
> Miguel
--~--~---------~--~----~------------~-------~--~----~
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