Hi Vitaly,
I am not an expert in HostedMode but what I observed is that
HostedMode is generating the WAR with the JS output of the
compilation. The problem is that it's not putting any web.xml inside
the WAR and also it doesn't ask me where the web.xml is located. I
have a correct web.xml but nobody is asking me where that file is
located.
Thanks,
Doru
http://java-hobby.blogspot.com/
On Mar 9, 10:24 am, Vitali Lovich <[email protected]> wrote:
> The web.xml file goes directly into your war - war/web.xml. HostedMode
> should pick it up directly.
>
> On Mon, Mar 9, 2009 at 4:21 AM, Doru <[email protected]> wrote:
>
> > 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]>
> > 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 [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
-~----------~----~----~----~------~----~------~--~---