My problem is that my project doesn't compile and I have know way of knowing if I'm on the right track code wise. There just isn't any comprehensive guide out there for having a solr/jetty app.
Development Team wrote: > > Hey, > So... I'm assuming your problem is that you're having trouble > deploying > Solr in Jetty? Or is your problem that it's deploying just fine but your > code throws an exception when you try to run it? > I am running Solr in Jetty, and I just copied the war into the > webapps > directory and it worked. It was accessible under /solr, and it was > accessible under the port that Jetty has as its HTTP listener (which is > probably 8080 by default, but probably won't be 8983). To specify the > solr-home I use a Java system property (instead of the JNDI way) since I > already have other necessary system properties for my apps. So if your > problem turns out to be with the JNDI, sorry I won't be of much help. > Hope that helps... > > - Daryl. > > > On Thu, Jun 18, 2009 at 2:44 AM, pof <melbournebeerba...@gmail.com> wrote: > >> >> Hi, I am currently trying to write a Jetty embedded java app that >> implements >> SOLR and uses SOLRJ by excepting posts telling it to do a batch index, or >> a >> deletion or what have you. At this point I am completely lost trying to >> follow http://wiki.apache.org/solr/SolrJetty . In my constructor I am >> doing >> the following call: >> >> Server server = new Server(); >> XmlConfiguration configuration = new XmlConfiguration(new >> FileInputStream("solrjetty.xml")); >> >> My xml has two calls, an addConnector to configure the port etc. and the >> addWebApplication as specified on the solr wiki. When running the app I >> get >> this: >> >> Exception in thread "main" java.lang.IllegalStateException: No Method: >> <Call >> name="addWebApplication"><Arg>/solr/*</Arg><Arg>/webapps/solr.war</Arg><Set >> name="extractWAR">true</Set><Set >> >> name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set><Call >> name="addEnvEntry"><Arg>/solr/home</Arg><Arg >> type="String">/solr/home</Arg></Call></Call> on class >> org.mortbay.jetty.Server >> >> Can anyone point me in the right direction? Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Solr-Jetty-confusion-tp24087264p24087264.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Solr-Jetty-confusion-tp24087264p24099696.html Sent from the Solr - User mailing list archive at Nabble.com.