Re: Jetty error message regarding EnvEntry in WebAppContext
On Tue, Aug 2, 2011 at 18:42, Jonathan Rochkind rochk...@jhu.edu wrote: You know that Solr distro comes with a jetty with a Solr in it, right, as an example application? Even if you don't want to use it for some reason, that would probably be the best model to look at for a working jetty with solr. Sure, I know about the pre-configured Jetty and that one runes fine on the command line. Or is the problem that you want a different version of jetty? What I actually wanted is a robust background service with init script. As it happens, I just recently set up a jetty 6.1.26 for another project, not for solr. It was kind of a pain not being too familiar with java deployment or jetty. But I did get JDNI working, by following the jetty instructions here: http://docs.codehaus.org/display/JETTY/JNDI (It was a bit confusing to figure out what they were talking about not being familiar with jetty, but eventually I got it, and the instructions were correct.) I can imagine. I'll probably try to hand that task over to someone who does have a clue. :) Thanks for your response! Marian
Jetty error message regarding EnvEntry in WebAppContext
Hi! I am trying to deploy Solr under Jetty 6.1.22-1ubuntu1 (installed the jetty and libjetty-extra-java packages). However, it seems as if I can't get the webapp configuration set right. With this configuration... Configure class=org.mortbay.jetty.webapp.WebAppContext ... *Call name=addEnvEntry* Arg/solr/home/Arg Arg type=java.lang.String/opt/exptbx-solr/solr/Arg Arg type=java.lang.Booleantrue/Arg /Call /Configure ... I get the error: 426 [main] WARN org.mortbay.log - Config error at Call name=addEnvEntryArg/solr/home/ArgArg type=java.lang.String/opt/exptbx-solr/solr/ArgArg type=java.lang.Booleantrue/Arg/Call 426 [main] ERROR org.mortbay.log - EXCEPTION java.lang.IllegalStateException: No Method: Call name=addEnvEntryArg/solr/home/ArgArg type=java.lang.String/opt/exptbx-solr/solr/ArgArg type=java.lang.Booleantrue/Arg/Call on class org.mortbay.jetty.webapp.WebAppContext With this configuration instead... Configure class=org.mortbay.jetty.webapp.WebAppContext ... *New class=org.mortbay.jetty.plus.naming.EnvEntry* Arg/solr/home/Arg Arg type=java.lang.String/opt/exptbx-solr/solr/Arg Arg type=java.lang.Booleantrue/Arg /New /Configure I get the following error: 438 [main] WARN org.mortbay.log - Config error at New class=org.mortbay.jetty.plus.naming.EnvEntryArg/solr/home/ArgArg type=java.lang.String/opt/exptbx-solr/solr/ArgArg type=java.lang.Booleantrue/Arg/New 438 [main] WARN org.mortbay.log - EXCEPTION java.lang.ClassNotFoundException: org.mortbay.jetty.plus.naming.EnvEntry Both examples are derived from http://wiki.apache.org/solr/SolrJetty - the second one being a user-contributed config. It seems that the second problem occurs since I'm not using Jetty Plus. Or at least I don't have the library in the path. Can anyone tell me how a working configuration for Jetty 6.1.22 would have to look like? Thanks! Marian
Re: Jetty error message regarding EnvEntry in WebAppContext
On 8/2/2011 11:42 AM, Marian Steinbach wrote: Can anyone tell me how a working configuration for Jetty 6.1.22 would have to look like? You know that Solr distro comes with a jetty with a Solr in it, right, as an example application? Even if you don't want to use it for some reason, that would probably be the best model to look at for a working jetty with solr. Or is the problem that you want a different version of jetty? As it happens, I just recently set up a jetty 6.1.26 for another project, not for solr. It was kind of a pain not being too familiar with java deployment or jetty. But I did get JDNI working, by following the jetty instructions here: http://docs.codehaus.org/display/JETTY/JNDI (It was a bit confusing to figure out what they were talking about not being familiar with jetty, but eventually I got it, and the instructions were correct.) But if I wanted to run Solr in jetty, I'd start with the jetty that is distributed with solr, rather than trying to build my own.