Categories
Tags
Adventure BMW 650GS BMW 1200GS CentOS Death Valley Diving eclipse find FLV Fraser Island Golden Gate grand canyon Great Ocean Road grep GWT Hibernate holiday Hollywood Lucene Maps maven Motorbike mule ride Nokia N95 NYC Oz Paris Perl road trip San Francisco Search sed Singapore Solr struts2 Tomcat USA Vegas Video x264 YosemiteLinks
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
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
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