Another workaround which may be satisfactory in some scenarios would be place your index.html where you need it with content which only performs HTTP redirections: <html> <head> <meta http-equiv="Refresh" content="0; URL=my.Application/ Application.html"> </head> </html>
On Feb 24, 4:23 am, Matt Raible <[email protected]> wrote: > I was able to solve this by adding the UrlRewriteFilter to my project > with the following configuration in WEB-INF/urlrewrite.xml: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" > "http://tuckey.org/res/dtds/urlrewrite3.0.dtd"> > > <urlrewrite> > <rule> > <from>/$</from> > <to type="forward" last="true">/com.mycompany.app.Application/ > Application.html</to> > </rule> > <rule> > <from>/index.html</from> > <to type="forward" last="true">/com.mycompany.app.Application/ > Application.html</to> > </rule> > <rule> > <from>^/(.*)\.(.*)$</from> > <to type="forward">/com.mycompany.app.Application/$1.$2</to> > </rule> > </urlrewrite> > > Hope this helps someone else. > > Matt > > On Feb 18, 2:23 pm, Matt Raible <[email protected]> wrote: > > > Is there a way to use the gwt-maven plugin to allow running in hosted > > mode, as well as deploying the app at root? > > > Thanks, > > > Matt > > > On Wed, Feb 18, 2009 at 1:34 PM, Robert kebernet Cooper > > > <[email protected]> wrote: > > > > Rather "do that with the hosted mode tomcat".. > > > > 2009/2/18 Robert "kebernet" Cooper <[email protected]>: > > >> Aah, yeah. You can't actually do that with the hosted mode browser. You > > >> would need to deploy the war (or start it in-place) and run the shell in > > >> noserver mode. > > > >> 2009/2/18 Matt Raible <[email protected]>: > > > >>> What do I change my pom.xml's runTarget to? It's current set at: > > > >>> <runTarget>com.mycompany.Application/Application.html</runTarget> > > > >>> If I make your suggested change and change my runLevel to: > > > >>> <runTarget>index.html</runTarget> > > > >>> I get the following error in hosted mode: > > > >>> Unable to find/load module 'index.html' (see server log for details) > > > >>> Thanks, > > > >>> Matt > > > >>> On Wed, Feb 18, 2009 at 12:02 PM, Robert kebernet Cooper > > >>> <[email protected]> wrote: > > > >>>> Actually, I don't think you even need to do that anymore. With the > > >>>> 1.4+ bootstrap, just include > > >>>> <script src="my.Module/my.Module.nocache.js" > > > > >>>> in your webapp/index.html file. > > > >>>> On Wed, Feb 18, 2009 at 1:51 PM, Matt Raible <[email protected]> wrote: > > > >>>>> Rather than having my application's HTML file in > > >>>>> src/main/java/com/mycompany/Application.html, I'd like to move it to > > >>>>> src/main/webapp/index.html. I tried copying the HTML and adding the > > >>>>> following to my index.html, but no dice: > > > >>>>> <meta name="gwt:module" content="com.mycompany.Application"/> > > > >>>>> Is this possible with the gwt-maven-plugin? I'd like to have my main > > >>>>> HTML and CSS at the root of my application. > > > >>>>> Thanks, > > > >>>>> Matt > > > >>>> -- > > >>>> :Robert "kebernet" Cooper > > >>>> ::[email protected] > > >>>> Alice's cleartext > > >>>> Charlie is the attacker > > >>>> Bob signs and encrypts > > >>>>http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8 > > > >> -- > > >> :Robert "kebernet" Cooper > > >> ::[email protected] > > >> Alice's cleartext > > >> Charlie is the attacker > > >> Bob signs and encrypts > > >>http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8 > > > > -- > > > :Robert "kebernet" Cooper > > > ::[email protected] > > > Alice's cleartext > > > Charlie is the attacker > > > Bob signs and encrypts > > >http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" 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/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
