Git Product home page Git Product logo

Comments (3)

rahulbot avatar rahulbot commented on July 19, 2024

Hi. Sounds it's can't find the directory index. Dido you build it with Calvin and link it under /etc/ as the reader decribes?

————————————

Rahul Bhargava

http://datatherapy.org

http://rahul.connectionlab.org

@rahulbot

On Mon, Aug 24, 2015 at 1:43 PM, dbl [email protected] wrote:

Any ideas on this error?
(I added the dependency to my pom.xml)

com.bericotech
clavin
2.0.0

For CLAVIN:
$ mvn install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
For CLIFF:
$ mvn install
...
com.bericotech.clavin.ClavinException: Error opening gazetteer index.
at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:218)
at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:242)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:802)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:53)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:67)
at com.bericotech.clavin.gazetteer.query.LuceneGazetteer.(LuceneGazetteer.java:139)
at org.mediameter.cliff.ParseManager.getParserInstance(ParseManager.java:350)
at org.mediameter.cliff.ParseManager.extractAndResolve(ParseManager.java:301)
at org.mediameter.cliff.ParseManager.extractAndResolve(ParseManager.java:297)

at org.mediameter.cliff.test.places.BlacklistTest.testReddit(BlacklistTest.java:16)

Reply to this email directly or view it on GitHub:
#41

from cliff-annotator.

dbl001 avatar dbl001 commented on July 19, 2024

This resolved the issue. THANK YOU!

sudo ln -s /Users/blahblahblah/CLAVIN/IndexDirectory /etc/cliff2/IndexDirectory

from cliff-annotator.

dbl001 avatar dbl001 commented on July 19, 2024

Hi,

I’m trying to deploy the .war file under Tomcat 8.

I’ve installed Tomcat 8 and ran

David-Laxers-MacBook-Pro:CLIFF davidlaxer$ mvn tomcat7:deploy -DskipTests
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] CLIFF
[INFO] common
[INFO] stanford-entity-extractor
[INFO] cliff
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CLIFF 2.3.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.1:deploy (default-cli) @ CLIFF >>>
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.1:deploy (default-cli) @ CLIFF <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.1:deploy (default-cli) @ CLIFF ---
[INFO] Skipping non-war project
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building common 2.3.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.1:deploy (default-cli) @ common >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/davidlaxer/CLIFF/common/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ common ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/davidlaxer/CLIFF/common/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ common ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ common ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ common ---
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.1:deploy (default-cli) @ common <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.1:deploy (default-cli) @ common ---
[INFO] Skipping non-war project
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building stanford-entity-extractor 2.3.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.1:deploy (default-cli) @ stanford-entity-extractor >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ stanford-entity-extractor ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ stanford-entity-extractor ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ stanford-entity-extractor ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 23 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ stanford-entity-extractor ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ stanford-entity-extractor ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ stanford-entity-extractor ---
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.1:deploy (default-cli) @ stanford-entity-extractor <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.1:deploy (default-cli) @ stanford-entity-extractor ---
[INFO] Skipping non-war project
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cliff 2.3.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.1:deploy (default-cli) @ cliff >>>
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CLIFF ............................................. SUCCESS [ 0.788 s]
[INFO] common ............................................ SUCCESS [ 1.061 s]
[INFO] stanford-entity-extractor ......................... SUCCESS [ 0.177 s]
[INFO] cliff ............................................. FAILURE [ 0.049 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.440 s
[INFO] Finished at: 2015-08-24T16:59:04-08:00
[INFO] Final Memory: 13M/196M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cliff: Could not resolve dependencies for project org.mediameter:cliff:war:2.3.0: Failure to find org.mediameter:stanford-entity-extractor:jar:2.3.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :cliff
David-Laxers-MacBook-Pro:CLIFF davidlaxer$

The missing stanford-entity-extractor:jar:2.3.0 is in /Users/davidlaxer/CLIFF/stanford-entity-extractor/target.

126248753 123752 -rw-r--r-- 1 davidlaxer staff 63357761 Aug 24 14:15 ./target/stanford-entity-extractor-2.3.0.jar

Here’s what’s in my ~/.m2 repository:

avid-Laxers-MacBook-Pro:CLIFF davidlaxer$ ls -l ~/.m2/repository/org/mediameter/stanford-entity-extractor/2.3.0/
total 16
-rw-r--r-- 1 davidlaxer staff 242 Aug 24 10:28 stanford-entity-extractor-2.3.0.jar.lastUpdated
-rw-r--r-- 1 davidlaxer staff 242 Aug 24 12:02 stanford-entity-extractor-2.3.0.pom.lastUpdated

Oddly! there was nothing in ~/.m2/settings.xml.
When I added:

CliffTomcatServer cliff beer

It caused other problems. Probably because the rest of the settings.xml was missing.
Any ideas?

On Aug 24, 2015, at 1:01 PM, rahulbot [email protected] wrote:

Hi. Sounds it's can't find the directory index. Dido you build it with Calvin and link it under /etc/ as the reader decribes?

————————————

Rahul Bhargava

http://datatherapy.org

http://rahul.connectionlab.org

@rahulbot

On Mon, Aug 24, 2015 at 1:43 PM, dbl [email protected] wrote:

Any ideas on this error?
(I added the dependency to my pom.xml)

com.bericotech
clavin
2.0.0

For CLAVIN:
$ mvn install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
For CLIFF:
$ mvn install
...
com.bericotech.clavin.ClavinException: Error opening gazetteer index.
at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:218)
at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:242)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:802)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:53)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:67)
at com.bericotech.clavin.gazetteer.query.LuceneGazetteer.(LuceneGazetteer.java:139)
at org.mediameter.cliff.ParseManager.getParserInstance(ParseManager.java:350)
at org.mediameter.cliff.ParseManager.extractAndResolve(ParseManager.java:301)
at org.mediameter.cliff.ParseManager.extractAndResolve(ParseManager.java:297)

at org.mediameter.cliff.test.places.BlacklistTest.testReddit(BlacklistTest.java:16)

Reply to this email directly or view it on GitHub:
#41

Reply to this email directly or view it on GitHub #41 (comment).

from cliff-annotator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.