Re: [Newbie] Solr Setup

2006-10-03 Thread Nick Snels

I have Solr with Tomcat installed on a CentOS box. I had to place the Solr
map, with the bin and conf maps inside under /home/tomcat/ and chown
tomcat:tomcat /home/tomcat/solr and then Tomcat can find Solr home and the
errors should be gone.

Kind regards,

Nick


On 10/3/06, WHIRLYCOTT <[EMAIL PROTECTED]> wrote:


It's not asking for admin privs on your laptop.  Or it shouldn't be,
at least.  What exactly is asking for admin rights?

phil.

On Oct 2, 2006, at 6:11 PM, Panayiotis Papadopoulos wrote:

> I ve have alreay followed the instructions for Tomcat installatin
> from wiki but no success but i have not executed the self contained
> demo... I try to execute it but is asks from Admin authorization on
> my win laptop... And i cannot figure why it does so ? Or where
> should i change the user and pass ??
> Sorry for the lots of questions... Hope one day i can anwser more
> than question more on this list
>
> 
> http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
> http://www.freemail.gr - free email service for the Greek-speaking.


--
Whirlycott
Philip Jacob
[EMAIL PROTECTED]
http://www.whirlycott.com/phil/





Re: [Newbie] Solr Setup

2006-10-03 Thread Panayiotis Papadopoulos

It prompts for HTTP authorization asking for password for Admin Realm


http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.


Re: [Newbie] Solr Setup

2006-10-03 Thread Panayiotis Papadopoulos

but it plays on Linux so i ll focus on that...
So my question now it will be if i can modify the example to server my 
needs ... As i said i want to index 4 tables so i ll have to run 4 
instances of the same example ? Starting 4 Jettys or there is any 
smarter way ?



http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.


I think i got right...

2006-10-03 Thread Panayiotis Papadopoulos

Hi there again, sorry for bugging you once more...
So i executed the bandled example and know i did the following in Tomcat 
once again:


* Tomcat is set correctly and there is not solr/ neither solr.war in webapps
* I copied solr.war in /lib/solr.war
* As the tutorial says i created 
$CATALINA_HOME/conf/Catalina/localhost/solr.xml, its conent



  value="/var/solr/solr" override="true" />



* I also created the dir var/solr/solr by copying the solr directory 
from the example
the var/solr/solr contains bin/ conf/ data/  i chwon to tomcat5 and 
chgrp to www-data but still i get 404



PS i have also created the entries for solr_r , solr_rg , solr_p , 
solr_o which other the instances i want to use




http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.


Re: I think i got right...

2006-10-03 Thread Bill Au

solar.war should be copied into the webapps directory, not lib.

Bill

On 10/3/06, Panayiotis Papadopoulos <[EMAIL PROTECTED]> wrote:


Hi there again, sorry for bugging you once more...
So i executed the bandled example and know i did the following in Tomcat
once again:

* Tomcat is set correctly and there is not solr/ neither solr.war in
webapps
* I copied solr.war in /lib/solr.war
* As the tutorial says i created
$CATALINA_HOME/conf/Catalina/localhost/solr.xml, its conent


   


* I also created the dir var/solr/solr by copying the solr directory
from the example
the var/solr/solr contains bin/ conf/ data/  i chwon to tomcat5 and
chgrp to www-data but still i get 404


PS i have also created the entries for solr_r , solr_rg , solr_p ,
solr_o which other the instances i want to use



http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.



Re: I think i got right...

2006-10-03 Thread Panayiotis Papadopoulos

According to this example:


  


it seems that it does not matter but i also put it in webapps
besides in the wiki it says that when u use fragments it says clearly:

" Don't put anything related to solr under the webapps directory. "





http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.


Re: [Newbie] Solr Setup

2006-10-03 Thread Joachim Martin
If you have deployed solr as a root application, tomcat may be getting 
confused with the /admin/ url, thinking that it is the tomcat 
administration app.


If you have it deployed, I would rename the /admin/ app to be /tadmin/ 
or something to distinguish from the solr /admin/ directory.


--Joachim

Panayiotis Papadopoulos wrote:


It prompts for HTTP authorization asking for password for Admin Realm


http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.





Re: [Newbie] Solr Setup

2006-10-03 Thread Panayiotis Papadopoulos
besides the admin module that thorws an exception (i ll post it later 
on) when i try to visit solr or solr_p solr_r (as i have configured in 
context fragments) i always get 404



http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.


Re: [Newbie] Solr Setup

2006-10-03 Thread Yonik Seeley

On 10/3/06, Panayiotis Papadopoulos <[EMAIL PROTECTED]> wrote:

but it plays on Linux so i ll focus on that...
So my question now it will be if i can modify the example to server my
needs ... As i said i want to index 4 tables so i ll have to run 4
instances of the same example ? Starting 4 Jettys or there is any
smarter way ?


It depends on the size of the tables.
You can use a single schema for all the tables if you want.  If they
are large enough, it's probably advisable to put them in separate
servlets or servers.

-Yonik


Re: I think i got right...

2006-10-03 Thread Yonik Seeley

On 10/3/06, Panayiotis Papadopoulos <[EMAIL PROTECTED]> wrote:

Hi there again, sorry for bugging you once more...
So i executed the bandled example and know i did the following in Tomcat
once again:

* Tomcat is set correctly and there is not solr/ neither solr.war in webapps
* I copied solr.war in /lib/solr.war
* As the tutorial says i created
$CATALINA_HOME/conf/Catalina/localhost/solr.xml, its conent


   


* I also created the dir var/solr/solr by copying the solr directory
from the example
the var/solr/solr contains bin/ conf/ data/  i chwon to tomcat5 and
chgrp to www-data but still i get 404


It looks like you did everything correctly.
So you get a 404 trying a solr/admin url?

I assume you are trying to use the tomcat bundled with your OS?
Since I don't know how thats configured, try downloading your own
Tomcat as shown in http://wiki.apache.org/solr/SolrTomcat under
"Example Install"

If that still fails, look in the log files and look for the first
exception you see.

-Yonik


Re: I think i got right...

2006-10-03 Thread Panayiotis Papadopoulos
It is not bundled tomcat. I have downloaded form apache jakarta site, 
the version i use is 5.5.20


So the excpetions i get are:

When i try to visit solr/admin or solr_r/admin or one of the other as i 
have configured i get:


java.io.FileNotFoundException: 
/usr/lib/apache-tomcat-5.5.20/work/Catalina/localhost/solr/org/apache/jsp/admin/index_jsp.java
 (No such file or directory)

when i try to visit solr i get 404

in the logs
the localhost log  gives me: 
	

SEVERE: Servlet /solr threw load() exception
java.lang.NoClassDefFoundError

Catalina log seems fine:
3 Οκτ 2006 1:31:18 μμ org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
3 Οκτ 2006 1:31:18 μμ org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
3 Οκτ 2006 1:31:19 μμ org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive solr.war
3 Οκτ 2006 1:31:19 μμ org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
3 Οκτ 2006 1:31:19 μμ org.apache.solr.servlet.SolrServlet init
INFO: No /solr/home in JNDI
3 Οκτ 2006 1:31:19 μμ org.apache.solr.servlet.SolrServlet init
INFO: user.dir=/usr/lib/apache-tomcat-5.5.20
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.Config getInstanceDir
INFO: Solr home defaulted to 'solr/'
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.SolrConfig initConfig
INFO: Loaded SolrConfig: solrconfig.xml
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.RequestHandlers 
INFO: adding requestHandler standard=solr.StandardRequestHandler
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.RequestHandlers 
INFO: adding requestHandler dismax=solr.DisMaxRequestHandler
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.RequestHandlers 
INFO: adding requestHandler partitioned=solr.DisMaxRequestHandler
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.RequestHandlers 
INFO: adding requestHandler instock=solr.DisMaxRequestHandler
3 Οκτ 2006 1:31:19 μμ org.apache.solr.core.SolrCore 
INFO: Opening new SolrCore at solr/, dataDir=solr/data
3 Οκτ 2006 1:31:19 μμ org.apache.solr.schema.IndexSchema readConfig
INFO: Reading Solr Schema
3 Οκτ 2006 1:31:19 μμ org.apache.solr.schema.IndexSchema readConfig
INFO: Schema name=example
3 Οκτ 2006 1:31:20 μμ org.apache.solr.schema.IndexSchema readConfig
INFO: default search field is text
3 Οκτ 2006 1:31:20 μμ org.apache.solr.schema.IndexSchema readConfig
INFO: query parser default operator is OR
3 Οκτ 2006 1:31:20 μμ org.apache.solr.schema.IndexSchema readConfig
INFO: unique key field: id
3 Οκτ 2006 1:31:20 μμ org.apache.solr.core.SolrCore parseListener
INFO: Searching for listeners: //[EMAIL PROTECTED]"firstSearcher"]
3 Οκτ 2006 1:31:20 μμ org.apache.solr.core.SolrCore parseListener
INFO: Searching for listeners: //[EMAIL PROTECTED]"newSearcher"]


That 's all, it seems very strange since catalina log seems perfect


http://www.freemail.gr - ��   ���http://www.freemail.gr - free email service for the Greek-speaking.


Re: I think i got right...

2006-10-03 Thread Yonik Seeley

On 10/3/06, Panayiotis Papadopoulos <[EMAIL PROTECTED]> wrote:

It is not bundled tomcat. I have downloaded form apache jakarta site,
the version i use is 5.5.20


OK, I just tried tomcat 5.5.20 on my windows/cygwin box with a context
fragment, and it worked fine for me.

What I did:
1) download and unzip tomcat 5.5.20
2) put a solr.xml context fragment that points to the war and config
from the bundled example:

[EMAIL PROTECTED] /cygdrive/f/opt/tomcat5520
$ cat conf/Catalina/localhost/solr.xml

  


3) start tomcat via "bin/startup.sh"
4) open browser at http://localhost:8080/solr/admin/

For you, it looks like that Solr is finding all the config fine.  The
problem looks like an environment/tomcat config problem.  The
exception you list makes it look like tomcat can't compile the JSPs
into classes for some reason.


java.io.FileNotFoundException: 
/usr/lib/apache-tomcat-5.5.20/work/Catalina/localhost/solr/org/apache/jsp/admin/index_jsp.java
 (No such file or directory)



Perhaps a simple file permissions problem?
I assume you are trying to run Tomcat as the same user you unpacked it as?
Maybe try chmod -R a+rwx
/usr/lib/apache-tomcat-5.5.20/

It might also be an environment problem... try unsetting any
environment variable name with CATALINA as part of it's name.

I'd also start off with a single context fragment to make things
simpler, but that doesn't look like it's the problem.

-Yonik