Just remember that each time you upgrade gwt, or checkout your project
from source control gwt will overwrite your web.xml.
We get around this by logging a statement on initialisation that shows
in the gwt console - if that doesn't appear we know somethings gone
wrong and check the web.xml.

On Jan 7, 2:07 pm, "[email protected]" <[email protected]> wrote:
> To answer my own question, existing web.xml files work fine with
> hosted mode. I was able to setup log4j, jdom, my singleton and other
> third party server side configuration by just copying the config into
> the generated GWT web.xml in ./tomcat/webapss/ROOT/WEB-INF/web.xml and
> I created a subdirectory called lib and put my third party server side
> JARS in there and the hosted mode tomcat found them fine.
>
> On Jan 6, 6:20 pm, "[email protected]" <[email protected]> wrote:
>
> > I want to port a small tomcat application to use GWT hosted mode, but
> > I want to know if I can port the following setting to the *.gwt.xml
> > file from the web.xml file? See below.
>
> >         <listener>
> >         <listener-class>
> >                 
> > com.toyota.agentstatus.server.controller.FlatFileReaderFactory
> >         </listener-class>
> >         </listener>
>
> >         <env-entry>
> >                 <env-entry-name>csv.start.hour</env-entry-name>
> >                 <env-entry-value>05</env-entry-value>
> >                 <env-entry-type>java.lang.Integer</env-entry-type>
> >         </env-entry>
>
> > The first setting is a class that gets loaded on the server at start
> > up as a singleton. As its name suggest it caches the data read from a
> > CSV file. The environment entry tells the singleton to load the cache
> > run at 5:00 AM daily.
>
> > I didn't see in the docs how to add this to my gwt.xml file. Is there
> > away to add these settings?
>
> > Thanks
> > Scott
--~--~---------~--~----~------------~-------~--~----~
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