The context 'solr' is not initialized. The most likely reson is that you have not set the solr.home correctly. --Noble
On Wed, Jul 9, 2008 at 3:24 AM, sandeep kaur <[EMAIL PROTECTED]> wrote: > > Hi, > > As i am running tomcat after copying the solr files to appropriate tomcat > directories, i am getting the followin error in the catalina log: > > Jul 8, 2008 10:30:02 PM org.apache.catalina.core.AprLifecycleListener init > INFO: The Apache Tomcat Native library which allows optimal performance in > production environments was not found on the java.library.path: > /usr/java/jdk1.6.0_06 > /jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jr > e/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib > Jul 8, 2008 10:30:02 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Jul 8, 2008 10:30:02 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 285 ms > Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.9 > Jul 8, 2008 10:30:02 PM org.apache.solr.servlet.SolrDispatchFilter init > INFO: SolrDispatchFilter.init() > Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config getInstanceDir > INFO: Using JNDI solr.home: /home/user_name/softwares > Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config setInstanceDir > INFO: Solr home set to '/home/user_name/softwares/' > Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardContext start > SEVERE: Error filterStart > Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/solr] startup failed due to previous errors > Jul 8, 2008 10:30:03 PM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Jul 8, 2008 10:30:03 PM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > Jul 8, 2008 10:30:03 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/30 config=null > Jul 8, 2008 10:30:03 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 589 ms > > In the browser while typing http://localhost:8080/solr/admin > > i am getting the following error > > HTTP Status 404 - /solr/admin > > type Status report > > message /solr/admin > > description The requested resource (/solr/admin) is not available. > Apache Tomcat/6.0.9 > > Could anyone please suggest how to resolve this error. > > Thanks, > Sandip > > > --- On Tue, 8/7/08, Shalin Shekhar Mangar <[EMAIL PROTECTED]> wrote: > >> From: Shalin Shekhar Mangar <[EMAIL PROTECTED]> >> Subject: Re: Integrate Solr with Tomcat in Linux >> To: solr-user@lucene.apache.org, [EMAIL PROTECTED] >> Date: Tuesday, 8 July, 2008, 4:40 PM >> Take a look at http://wiki.apache.org/solr/SolrTomcat >> >> Please avoid replying to an older message when you're >> starting a new topic. >> >> On Tue, Jul 8, 2008 at 4:36 PM, sandeep kaur >> <[EMAIL PROTECTED]> >> wrote: >> >> > Hi, >> > >> > I have solr with jetty as server application running >> on Linux. >> > >> > Could anyone please tell me the changes i need to make >> to integrate Tomcat >> > with solr on Linux. >> > >> > Thanks, >> > Sandip >> > >> > --- On Mon, 7/7/08, Benson Margulies >> <[EMAIL PROTECTED]> wrote: >> > >> > > From: Benson Margulies >> <[EMAIL PROTECTED]> >> > > Subject: Re: js client >> > > To: [EMAIL PROTECTED], "solr-user" >> <solr-user@lucene.apache.org> >> > > Date: Monday, 7 July, 2008, 11:43 PM >> > > The Javascript should have the right URL >> automatically if >> > > you get it from >> > > the ?js URL. >> > > >> > > Anyway, I think I was the first person to say >> > > 'stupid' about that WSDL in >> > > the sample. >> > > >> > > I'm not at all clear on what you are doing at >> this >> > > point. >> > > >> > > Please send along the URL that works for you in >> soapUI and >> > > the URL that >> > > works for you in the >> <script>...</script> >> > > element. >> > > >> > > >> > > >> > > >> > > On Mon, Jul 7, 2008 at 5:54 AM, Christine Karman >> > > <[EMAIL PROTECTED]> >> > > wrote: >> > > >> > > > On Sun, 2008-07-06 at 10:25 -0400, Benson >> Margulies >> > > wrote: >> > > > > In the sample, it is a relative URL to >> the web >> > > service endpoint. The >> > > > > sample starts from a stupid WSDL with >> silly names >> > > for the service and >> > > > > the port. >> > > > >> > > > I'm sorry about using the word >> "stupid". >> > > > >> > > > > >> > > > > Take your endpoint deployment URL, the >> very URL >> > > that is logged when >> > > > > your service starts up, and add ?js to >> the end of >> > > it. Period. >> > > > >> > > > Yes, that's what I do, and that part has >> been >> > > working all the time. What >> > > > doesn't work is I use the same url >> without the ?js >> > > for the web service. >> > > > Is there a way to see the Jetty log file? >> Mabye that >> > > will give me a clue >> > > > what's happening. If nothing is in the >> jetty log >> > > file, I know the >> > > > problem is elsewhere. >> > > > >> > > > Christine >> > > > >> > > > > >> > > > > If it is >> > > > > >> > > > > http://wendy.christine.nl:9000/soap, >> make it >> > > > > >> > > > > http://wendy.christine.nl:9000/soap?js >> > > > > >> > > > > >> > > > > >> > > > > The sample is taking advantage of >> relative URLs >> > > to avoid typing >> > > > > http://etc. >> > > > > >> > > > > On Sun, Jul 6, 2008 at 8:52 AM, >> Christine Karman >> > > > > <[EMAIL PROTECTED]> wrote: >> > > > > On Sun, 2008-07-06 at 07:37 >> -0400, Benson >> > > Margulies wrote: >> > > > > > The javascript client >> probably >> > > cannot handle redirects. If >> > > > > you are now >> > > > > > using ?js, you >> shouldn't need a >> > > redirect. >> > > > > >> > > > > >> > > > > well actually, the server >> redirect is >> > > similar to a rewrite. It >> > > > > makes /soap the same as >> /soap:9000. >> > > removing the redirect >> > > > > brings me back >> > > > > to the 650 error, "access >> to >> > > restricted uri denied". >> > > > > >> > > > > What does the /Soap/SoapPort >> mean in the >> > > sample? how does that >> > > > > translate >> > > > > to my localhost:9000 or >> localhost/soap? >> > > (localhost == >> > > > > wendy.christine.nl). >> > > > > >> > > > > It's silly that creating >> the web >> > > service from my java code is >> > > > > so very >> > > > > simple, and that some stupid >> javascript >> > > code can't be >> > > > > persuaded to work >> > > > > properly :-) I've done my >> part of >> > > javascript but I have never >> > > > > liked it. >> > > > > >> > > > > CXF is really good. I was in a >> project a >> > > while ago where I >> > > > > suggested to >> > > > > use cxf, but someone who was >> supposed to >> > > have releavant >> > > > > experience >> > > > > insisted on using axis2. Took >> him a week >> > > to create some soap >> > > > > services. >> > > > > He had to remove all enums and >> nested >> > > objects from the >> > > > > project because >> > > > > axis wouldn't support that. >> A friend >> > > of mine is using cxf in >> > > > > his project >> > > > > and he insisted I use it also. >> > > > > >> > > > > Christine >> > > > > >> > > > > >> > > > > > >> > > > > > The browser allows an HTML >> page to >> > > load javascript from >> > > > > anywhere. Once >> > > > > > it has loaded javascript >> from a >> > > host:port, it will allow >> > > > > outbound >> > > > > > connections to that >> host:port. >> > > > > > >> > > > > > So, once you use >> > > src="...../?js" you should be set. >> > > > > > >> > > > > > The sample does not fully >> > > demonstrate this effect, since it >> > > > > has the >> > > > > > benefit of really running >> the web >> > > service and the static >> > > > > HTML from >> > > > > > the very same host::port. >> > > > > > >> > > > > > In the past, before there >> was such a >> > > thing as the ?js URL, >> > > > > the >> > > > > > solution here was a >> reverse proxy >> > > instead of a redirect. You >> > > > > set up >> > > > > > URL rewriting in plain old >> Apache 2 >> > > so that xxx:9000 is >> > > > > transparently >> > > > > > available at xxx. >> > > > > > >> > > > > > I don't have my recipe >> for this >> > > available at home, if you're >> > > > > still >> > > > > > stuck tomorrow I can dig >> it out of >> > > my office. >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > On Sun, Jul 6, 2008 at >> 7:20 AM, >> > > Christine >> > > > > <[EMAIL PROTECTED]> >> > > > > > wrote: >> > > > > > Benson, >> > > > > > I'm still >> struggling. >> > > This is what I have now. >> > > > > > I have copied the >> Greeter >> > > example >> > > > > (js-browser-client-simple) >> > > > > > from the >> > > > > > samples. Because >> > > cross-scripting is not allowed (I >> > > > > think that >> > > > > > was >> > > > > > causing the 650 >> error I got) >> > > I have created a >> > > > > redirect in my >> > > > > > apache web >> > > > > > server so my url >> is now >> > > local and at port 80. >> > > > > The ?js import >> > > > > > works fine. >> > > > > > My url is the same >> as the >> > > ?js url, without the ?js. >> > > > > > I have tested my >> web service >> > > with SoapUI. When I >> > > > > point my >> > > > > > browser to the >> > > > > > url from the >> javascript >> > > (similar to >> > > > > the /SoapContext/SoapPort >> > > > > > in the >> > > > > > sample) I get an >> error >> > > message from the Soap server, >> > > > > so I know >> > > > > > it's >> > > > > > listening at that >> url. But >> > > running the javascript >> > > > > gives an >> > > > > > error -1, >> > > > > > "could not >> connect to >> > > server". I run the web service >> > > > > from >> > > > > > within >> > > > > > Eclipse, which >> doesn't >> > > produce any log output when I >> > > > > get the >> > > > > > -1 error. >> > > > > > It does when I get >> the error >> > > at the same url in my >> > > > > browser. >> > > > > > >> > > > > > this is the first >> bit of my >> > > html, the rest is the >> > > > > same as the >> > > > > > sample. >> > > > > > >> > > > > > <html> >> > > > > > >> > > <head><title>...</title> >> > > > > > <script >> > > language="JavaScript" >> > > TYPE="text/JavaScript" >> > > > > > >> > > >> src="/dir/port?js"></script> >> > > > > > <SCRIPT >> > > LANGUAGE="JavaScript" >> > > > > >> > > TYPE="text/JavaScript"><!-- >> > > > > > >> > > > > > var CXFChat = new >> > > chat__CXFChat (); >> > > > > > >> > > CXFChat.url="/dir/port"; >> > > > > > var >> responseString; >> > > > > > var >> userId=""; >> > > > > > >> > > > > > function >> > > sayResponse(response) >> > > > > > { >> > > > > > >> > > responseSpan.firstChild.nodeValue = >> > > > > > >> response.getResponseType(); >> > > > > > } >> > > > > > >> > > > > > function >> sayError(error) >> > > > > > { >> > > > > > >> alert('error >> > > ' + error); >> > > > > > } >> > > > > > ...... >> > > > > > >> > > > > > >> > > > > > -- >> > > > > > dagdag is just a >> two >> > > character rotation of byebye >> > > > > > www.christine.nl >> > > > > > >> > > > > > >> > > > > >> > > > > -- >> > > > > >> > > > > dagdag is just a two character >> rotation >> > > of byebye >> > > > > www.christine.nl >> > > > > >> > > > > >> > > > > >> > > > -- >> > > > dagdag is just a two character rotation of >> byebye >> > > > www.christine.nl >> > > > >> > > > >> > >> > >> > Bollywood, fun, friendship, sports and more. You >> name it, we have it >> > on http://in.promos.yahoo.com/groups/bestofyahoo/ >> > >> >> >> >> -- >> Regards, >> Shalin Shekhar Mangar. > > > Explore your hobbies and interests. Go to > http://in.promos.yahoo.com/groups/ > -- --Noble Paul