RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20
Can anyone help me? -Mensagem original- De: Claudio Ranieri [mailto:claudio.rani...@estadao.com] Enviada em: sexta-feira, 24 de agosto de 2012 11:40 Para: solr-user@lucene.apache.org Assunto: RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Hi Vadim, No, I used the entire apache-solr-4.0.0-BETA\example\solr (schema.xml, solrconfig.xml ...) -Mensagem original- De: Vadim Kisselmann [mailto:v.kisselm...@gmail.com] Enviada em: sexta-feira, 24 de agosto de 2012 07:26 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 a presumption: do you use your old solrconfig.xml files from older installations? when yes, compare the default config and yours. 2012/8/23 Claudio Ranieri claudio.rani...@estadao.com: I made this instalation on a new tomcat. With Solr 3.4.*, 3.5.*, 3.6.* works with jars into $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I needed to add the jars into $TOMCAT_HOME/lib. The problem with the cast seems to be in the source code. -Mensagem original- De: Karthick Duraisamy Soundararaj [mailto:karthick.soundara...@gmail.com] Enviada em: quinta-feira, 23 de agosto de 2012 09:22 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 where tomcat refused to find one of the classes that existed. I deleted the tomcat's webapp directory and then it worked fine. On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson erickerick...@gmail.comwrote: First, I'm no Tomcat expert here's the Tomcat Solr page, but you've probably already seen it: http://wiki.apache.org/solr/SolrTomcat But I'm guessing that you may have old jars around somewhere and things are getting confused. I'd blow away the whole thing and start over, whenever I start copying jars around I always lose track of what's where. Have you successfully had any other Solr operate under Tomcat? Sorry I can't be more help Erick On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri claudio.rani...@estadao.com wrote: Hi, I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does not work. I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps. Then I copied the directory apache-solr-4.0.0-BETA\example\solr to C:\home\solr-4.0-beta and adjusted the file $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to point the solr/home to C:/home/solr-4.0-beta. With this configuration, when I startup tomcat I got: SEVERE: org.apache.solr.common.SolrException: Invalid luceneMatchVersion 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in format 'VV' So I changed the line in solrconfig.xml: luceneMatchVersionLUCENE_40/luceneMatchVersion to luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion So I got a new error: Caused by: java.lang.ClassNotFoundException: solr.NRTCachingDirectoryFactory This class is within the file apache-solr-core-4.0.0-BETA.jar but for some reason classloader of the class is not loaded. I then moved all jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to $TOMCAT_HOME\lib. After this setup, I got a new error: SEVERE: java.lang.ClassCastException: org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to org.apache.solr.core.DirectoryFactory So I changed the line in solrconfig.xml: directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/ to directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/ So I got a new error: Caused by: java.lang.ClassCastException: org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to org.apache.solr.spelling.SolrSpellChecker How can I resolve the problem of classloader? How can I resolve the problem of cast of NRTCachingDirectoryFactory and DirectSolrSpellChecker? I can not startup the solr 4.0 beta with tomcat. Thanks, -- -- Karthick D S Master's in Computer Engineering ( Software Track ) Syracuse University Syracuse - 13210 New York United States of America
RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20
I solved the problem. I added the parameter sharedLib=lib in $SOLR_HOME/solr.xml (solr persistent=true sharedLib=lib) and moved all jars into $TOMCAT_HOME/webapps/solr/WEB-INF/lib to $SOLR_HOME/lib This information could be included in the wiki Solr / Tomcat. Claudio Ranieri | Especialista Sistemas de Busca | S.A O Estado de S.Paulo Av. Eng. Caetano Álvares, 55 - Limão - São Paulo - SP - 02598-900 + 55 11 3856-5790 | + 55 11 9344-2674 -Mensagem original- De: Claudio Ranieri [mailto:claudio.rani...@estadao.com] Enviada em: segunda-feira, 27 de agosto de 2012 10:34 Para: solr-user@lucene.apache.org Assunto: RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Can anyone help me? -Mensagem original- De: Claudio Ranieri [mailto:claudio.rani...@estadao.com] Enviada em: sexta-feira, 24 de agosto de 2012 11:40 Para: solr-user@lucene.apache.org Assunto: RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Hi Vadim, No, I used the entire apache-solr-4.0.0-BETA\example\solr (schema.xml, solrconfig.xml ...) -Mensagem original- De: Vadim Kisselmann [mailto:v.kisselm...@gmail.com] Enviada em: sexta-feira, 24 de agosto de 2012 07:26 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 a presumption: do you use your old solrconfig.xml files from older installations? when yes, compare the default config and yours. 2012/8/23 Claudio Ranieri claudio.rani...@estadao.com: I made this instalation on a new tomcat. With Solr 3.4.*, 3.5.*, 3.6.* works with jars into $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I needed to add the jars into $TOMCAT_HOME/lib. The problem with the cast seems to be in the source code. -Mensagem original- De: Karthick Duraisamy Soundararaj [mailto:karthick.soundara...@gmail.com] Enviada em: quinta-feira, 23 de agosto de 2012 09:22 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 where tomcat refused to find one of the classes that existed. I deleted the tomcat's webapp directory and then it worked fine. On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson erickerick...@gmail.comwrote: First, I'm no Tomcat expert here's the Tomcat Solr page, but you've probably already seen it: http://wiki.apache.org/solr/SolrTomcat But I'm guessing that you may have old jars around somewhere and things are getting confused. I'd blow away the whole thing and start over, whenever I start copying jars around I always lose track of what's where. Have you successfully had any other Solr operate under Tomcat? Sorry I can't be more help Erick On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri claudio.rani...@estadao.com wrote: Hi, I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does not work. I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps. Then I copied the directory apache-solr-4.0.0-BETA\example\solr to C:\home\solr-4.0-beta and adjusted the file $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to point the solr/home to C:/home/solr-4.0-beta. With this configuration, when I startup tomcat I got: SEVERE: org.apache.solr.common.SolrException: Invalid luceneMatchVersion 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in format 'VV' So I changed the line in solrconfig.xml: luceneMatchVersionLUCENE_40/luceneMatchVersion to luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion So I got a new error: Caused by: java.lang.ClassNotFoundException: solr.NRTCachingDirectoryFactory This class is within the file apache-solr-core-4.0.0-BETA.jar but for some reason classloader of the class is not loaded. I then moved all jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to $TOMCAT_HOME\lib. After this setup, I got a new error: SEVERE: java.lang.ClassCastException: org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to org.apache.solr.core.DirectoryFactory So I changed the line in solrconfig.xml: directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/ to directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/ So I got a new error: Caused by: java.lang.ClassCastException: org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to org.apache.solr.spelling.SolrSpellChecker How can I resolve the problem of classloader? How can I resolve the problem of cast of NRTCachingDirectoryFactory and DirectSolrSpellChecker? I can not startup the solr 4.0 beta with tomcat. Thanks, -- -- Karthick D
RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20
Hi Vadim, No, I used the entire apache-solr-4.0.0-BETA\example\solr (schema.xml, solrconfig.xml ...) -Mensagem original- De: Vadim Kisselmann [mailto:v.kisselm...@gmail.com] Enviada em: sexta-feira, 24 de agosto de 2012 07:26 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 a presumption: do you use your old solrconfig.xml files from older installations? when yes, compare the default config and yours. 2012/8/23 Claudio Ranieri claudio.rani...@estadao.com: I made this instalation on a new tomcat. With Solr 3.4.*, 3.5.*, 3.6.* works with jars into $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I needed to add the jars into $TOMCAT_HOME/lib. The problem with the cast seems to be in the source code. -Mensagem original- De: Karthick Duraisamy Soundararaj [mailto:karthick.soundara...@gmail.com] Enviada em: quinta-feira, 23 de agosto de 2012 09:22 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 where tomcat refused to find one of the classes that existed. I deleted the tomcat's webapp directory and then it worked fine. On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson erickerick...@gmail.comwrote: First, I'm no Tomcat expert here's the Tomcat Solr page, but you've probably already seen it: http://wiki.apache.org/solr/SolrTomcat But I'm guessing that you may have old jars around somewhere and things are getting confused. I'd blow away the whole thing and start over, whenever I start copying jars around I always lose track of what's where. Have you successfully had any other Solr operate under Tomcat? Sorry I can't be more help Erick On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri claudio.rani...@estadao.com wrote: Hi, I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does not work. I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps. Then I copied the directory apache-solr-4.0.0-BETA\example\solr to C:\home\solr-4.0-beta and adjusted the file $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to point the solr/home to C:/home/solr-4.0-beta. With this configuration, when I startup tomcat I got: SEVERE: org.apache.solr.common.SolrException: Invalid luceneMatchVersion 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in format 'VV' So I changed the line in solrconfig.xml: luceneMatchVersionLUCENE_40/luceneMatchVersion to luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion So I got a new error: Caused by: java.lang.ClassNotFoundException: solr.NRTCachingDirectoryFactory This class is within the file apache-solr-core-4.0.0-BETA.jar but for some reason classloader of the class is not loaded. I then moved all jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to $TOMCAT_HOME\lib. After this setup, I got a new error: SEVERE: java.lang.ClassCastException: org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to org.apache.solr.core.DirectoryFactory So I changed the line in solrconfig.xml: directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/ to directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/ So I got a new error: Caused by: java.lang.ClassCastException: org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to org.apache.solr.spelling.SolrSpellChecker How can I resolve the problem of classloader? How can I resolve the problem of cast of NRTCachingDirectoryFactory and DirectSolrSpellChecker? I can not startup the solr 4.0 beta with tomcat. Thanks, -- -- Karthick D S Master's in Computer Engineering ( Software Track ) Syracuse University Syracuse - 13210 New York United States of America
RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20
I made this instalation on a new tomcat. With Solr 3.4.*, 3.5.*, 3.6.* works with jars into $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I needed to add the jars into $TOMCAT_HOME/lib. The problem with the cast seems to be in the source code. -Mensagem original- De: Karthick Duraisamy Soundararaj [mailto:karthick.soundara...@gmail.com] Enviada em: quinta-feira, 23 de agosto de 2012 09:22 Para: solr-user@lucene.apache.org Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 where tomcat refused to find one of the classes that existed. I deleted the tomcat's webapp directory and then it worked fine. On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson erickerick...@gmail.comwrote: First, I'm no Tomcat expert here's the Tomcat Solr page, but you've probably already seen it: http://wiki.apache.org/solr/SolrTomcat But I'm guessing that you may have old jars around somewhere and things are getting confused. I'd blow away the whole thing and start over, whenever I start copying jars around I always lose track of what's where. Have you successfully had any other Solr operate under Tomcat? Sorry I can't be more help Erick On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri claudio.rani...@estadao.com wrote: Hi, I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does not work. I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps. Then I copied the directory apache-solr-4.0.0-BETA\example\solr to C:\home\solr-4.0-beta and adjusted the file $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to point the solr/home to C:/home/solr-4.0-beta. With this configuration, when I startup tomcat I got: SEVERE: org.apache.solr.common.SolrException: Invalid luceneMatchVersion 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in format 'VV' So I changed the line in solrconfig.xml: luceneMatchVersionLUCENE_40/luceneMatchVersion to luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion So I got a new error: Caused by: java.lang.ClassNotFoundException: solr.NRTCachingDirectoryFactory This class is within the file apache-solr-core-4.0.0-BETA.jar but for some reason classloader of the class is not loaded. I then moved all jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to $TOMCAT_HOME\lib. After this setup, I got a new error: SEVERE: java.lang.ClassCastException: org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to org.apache.solr.core.DirectoryFactory So I changed the line in solrconfig.xml: directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/ to directoryFactory name=DirectoryFactory class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/ So I got a new error: Caused by: java.lang.ClassCastException: org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to org.apache.solr.spelling.SolrSpellChecker How can I resolve the problem of classloader? How can I resolve the problem of cast of NRTCachingDirectoryFactory and DirectSolrSpellChecker? I can not startup the solr 4.0 beta with tomcat. Thanks, -- -- Karthick D S Master's in Computer Engineering ( Software Track ) Syracuse University Syracuse - 13210 New York United States of America