Hi Vitaly, I already have the web.xml file properly configured. My only issue is that I don't know how to tell to the HostedMode application with an argument where the web.xml file is located. There is a -war argument which I used and which is generating a war folder structure...but how do I specify which web.xml to use?
Thanks, Doru http://java-hobby.blogspot.com/ On Mar 9, 7:46 am, Vitali Lovich <vlov...@gmail.com> wrote: > Ummm... I've never launched hosted mode from an ant file. My recommendation > would be to create a sample project, import it into Eclipse & look at the > parameters you need. From what I remember of the top of my head, all you > have to give when launching HostedMode is is the fully-qualified name of > your module. > > Then localhost/module-alias should hit your page (assuming that you've > configured your web.xml like webAppCreator does). > > On Sun, Mar 8, 2009 at 3:15 PM, Doru <virgil.tra...@gmail.com> wrote: > > > Hi, > > > I have an old GWT 1.5 project which I am trying to migrate to 1.6 > > > In build.xml how can I specify a web.xml file to the > > com.google.gwt.dev.HostedMode? > > > Thanks, > > Virgil > > > On Mar 8, 7:59 pm, Vitali Lovich <vlov...@gmail.com> wrote: > > > If you used the webAppCreator, you should get a sample web.xml in your > > war/ > > > directory. Servlets are no longer defined in your gwt.xml but rather > > > through the web.xml file. > > > > On Sun, Mar 8, 2009 at 9:56 AM, Doru <virgil.tra...@gmail.com> wrote: > > > > > Hi, > > > > > I am trying to use the new com.google.gwt.dev.HostedMode from an > > > > ANT build script. I have a problem and I get > > > > [WARN] Module declares 2 <servlet> declaration(s), but a valid > > > > 'web.xml' was not found. > > > > > How can I declare the web.xml when I use the new HostedMode in GWT1.6 > > > > > Thanks, > > > > Doru > > > >http://java-hobby.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---