Category Archives: HOWTO

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

HOWTO: Setup a shell Java Struts 2 web app using Maven 2 & Eclipse 3.4

The latest project I’m working on is a Java web app using Struts 2. I wanted to use the eclipse IDE since it’s industry standard and the Maven 2 build system for compatibility with other company projects. I did plenty … Continue reading

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