asmehra95 / wiseowl

This is a Fact based Question Answering System using Apache Solr as backend search engine, Wikipedia dumps as information source, Apache velocity , Html, Css for Web interface Design. The project also uses Linux bash script to perform its various functions like start,stop,training,indexing.
MIT License
25 stars 9 forks source link

SOLR error while starting #9

Closed zharenkov closed 5 years ago

zharenkov commented 5 years ago

Hi!

I've got a problem running application. What I've done:

        <dependency>
            <groupId>edu.stanford.nlp</groupId>
            <artifactId>stanford-corenlp</artifactId>
            <version>3.9.2</version>
        </dependency>

Then I built jar using mvn clean package But when I'm starting app using ./WiseOwl start, I got the error

Error: Could not find or load main class org.apache.solr.util.SolrCLI
Failed removing old solr logs
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Failed archiving old GC logs
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Failed archiving old console logs
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Failed rotating old solr logs
NOTE: Please install lsof as this script needs it to determine if Solr is listening on port 8983.

Started Solr server on port 8983 (pid=). Happy searching!

And on the webpage i've got 404 error


HTTP ERROR 404
Problem accessing /solr/WiseOwl/answer. Reason:
    Not Found

PS I'm running on Win10 machine, if its important.

zharenkov commented 5 years ago

As I can see on http://localhost:8983/solr there is no core for WiseOwl. And if I'm trying to create core - I get an error about schema.xml

zharenkov commented 5 years ago

The problem was that WiseOwlStanfordFactory is inherited from TokenFilterFactory,which should be declared in tag in schema.xml, not in .