Category Archives: Java

Analysing email addresses with Hibernate Search & Solr

On first appearance WordDelimiterFilterFactory seems like the most appropriate solution to the problem. It splits words into sub words on intra-word delimiters. So: “email@someserver.com” -> “email”, “someserver”, “com” This works well except for the fact that it splits on all … Continue reading

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

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