Monthly Archives: March 2009

HOWTO: Remove GWT package from url when using gwt-maven

Seriously, who wants a url like /my.long.package.name.Application/Application.html To remedy this use the following steps: Make the webapp directory the same as the output for your gwt code. … <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webappDirectory>${project.build.directory}/${project.build.finalName}/my.long.package.name.Application </webappDirectory> </configuration> </plugin> … Ensure that your … Continue reading

Posted in HOWTO, Java | Tagged , | Leave a comment

HOWTO: Run your java web app as the root context on Tomcat

If you have a context XML fragment in your war (META-INF/context.xml) then it’s as easy as renaming your war file to ROOT.war If you’re using the maven build system then just alter your pom to have: <build> <finalName>ROOT</finalName> … </build> … Continue reading

Posted in HOWTO, Java | Tagged , | Leave a comment