lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: how to integrate Solr for search into my Ecommerce application
Date Tue, 17 May 2011 16:02:05 GMT
At this point, I would suggest asking on solr-user@lucene.apache.org.  It has a lot more subscribers.
 From the looks of it, you have a malformed XML doc.

On May 17, 2011, at 9:25 AM, Romi wrote:

> Thanks for replying. I have read
> http://wiki.apache.org/solr/DataImportHandler, and have done the nessary
> changes for configuring database.
> 
> I am  getting the following exception, i want to know what i am missing
> here:
> Severe errors in solr configuration.
> 
> Check your log files for more detailed information on what may be wrong.
> 
> If you want solr to continue after configuration errors, change: 
> 
> <abortOnConfigurationError>false</abortOnConfigurationError>
> 
> in solr.xml
> 
> -------------------------------------------------------------
> org.apache.solr.handler.dataimport.DataImportHandlerException: Exception
> occurred while initializing context
> 	at
> org.apache.solr.handler.dataimport.DataImporter.loadDataConfig(DataImporter.java:190)
> 	at
> org.apache.solr.handler.dataimport.DataImporter.<init>(DataImporter.java:101)
> 	at
> org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:113)
> 	at
> org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)
> 	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:588)
> 	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:428)
> 	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
> 	at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
> 	at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
> 	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
> 	at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
> 	at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
> 	at org.mortbay.jetty.Server.doStart(Server.java:210)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.mortbay.start.Main.invokeMain(Main.java:183)
> 	at org.mortbay.start.Main.start(Main.java:497)
> 	at org.mortbay.start.Main.main(Main.java:115)
> Caused by: org.xml.sax.SAXParseException: Element type "entity" must be
> followed by either attribute specifications, ">" or "/>".
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
> Source)
> 	at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
> 	at
> org.apache.solr.handler.dataimport.DataImporter.loadDataConfig(DataImporter.java:178)
> 
> Grant Ingersoll-2 wrote:
>> 
>> On May 17, 2011, at 9:04 AM, Romi wrote:
>> 
>>> I configured Import Handler, i did the necessary changes
>>> db-data-config.xml
>>> as i changed <dataSource driver="" url=""> tag. 
>>> I wanted to know:
>>> in C:\apache-solr-1.4.0\example\example-DIH\solr\db\lib there is
>>> hsqldb-1.8.0.10.jar, but my database is MySql do i need to put its jar in
>>> to
>>> dis path, what other changes i need to do.
>> 
>> Yes, you need your DB driver to be in the lib.    I would suggest reading
>> http://wiki.apache.org/solr/DataImportHandler
>> as well as following the broader Solr tutorial.  I would also recommend
>> you pick up Smiley and Pugh's Solr 1.4 book.
>> 
>>> 
>>> Romi wrote:
>>>> 
>>>> Hi, i want to integrate Solr for search into my Ecommerce application.i
>>>> want to know how can i do it.
>>>> 
>>> 
>>> 
>>> -----
>>> Romi
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/how-to-integrate-Solr-for-search-into-my-Ecommerce-application-tp2930815p2952405.html
>>> Sent from the Lucene - General mailing list archive at Nabble.com.
>> 
>> --------------------------
>> Grant Ingersoll
>> Lucene Revolution -- Lucene and Solr User Conference
>> May 25-26 in San Francisco
>> www.lucenerevolution.org
>> 
> 
> 
> -----
> Romi
> --
> View this message in context: http://lucene.472066.n3.nabble.com/how-to-integrate-Solr-for-search-into-my-Ecommerce-application-tp2930815p2952496.html
> Sent from the Lucene - General mailing list archive at Nabble.com.

--------------------------
Grant Ingersoll
Lucene Revolution -- Lucene and Solr User Conference
May 25-26 in San Francisco
www.lucenerevolution.org


Mime
View raw message