Hi Greg, > I need the servlet API in my app for it to work, despite being command > line. > So adding this to the maven POM fixed everything: > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.5</version> > </dependency> > > Perhaps this dependency could be listed on the wiki? Alongside the sample > code for using embedded solr? > http://wiki.apache.org/solr/Solrj
Sounds good. Please go ahead and make this change yourself. FYI, the Solr 3.1 POM has a servlet-api dependency, but the scope is "provided", because the servlet container includes this dependency. When *you* are the container, you have to provide it. Steve