Entries for month: October 2009

Running Apache Solr on JBoss

Off late, I've been doing a lot of development with Railo running on JBoss. So naturally, I wanted to plug in Apache Solr (which now ships with ColdFusion 9) into my JBoss instance running Railo.

What I thought would be straight-forward took a bit to figure out. The issue comes when you have to setup the solr.home property. The Apache Solr wiki suggests putting an <env-entry> node in the web.xml. However, if you do that, the XML does not validate as "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN". JBoss 5 is a little particular about web.xml validating properly -- which is a good thing!

So the trick to declare Solr home variable is to do this:

Read more...