Skip to content

Trouble with linking CoreNLP #2

Description

@jimkang

I'm a little confused about this step:

Stanford CoreNLP is also needed. Install separately and make a symbolic link java-lib to it.

So, I downloaded the stanford-english-corenlp-2016-01-10-models.jar file from that web page and linked it like so:

ln -s stanford-english-corenlp-2016-01-10-models.jar java-lib

After building and running my Docker image, when I try to run start-server.sh from inside the image, I get this error:

root@7d4eb917c470:/corenlp-server# ./start-server.sh 

> @ start /corenlp-server
> node index.js

CoreNLP Server listening at http://[::]:8080
Unhandled rejection Error: Could not find class edu.stanford.nlp.pipeline.StanfordCoreNLP
java.lang.NoClassDefFoundError: edu/stanford/nlp/pipeline/StanfordCoreNLP
Caused by: java.lang.ClassNotFoundException: edu.stanford.nlp.pipeline.StanfordCoreNLP
  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

    at Error (native)
    at Java.tryCatcher (/corenlp-server/node_modules/bluebird/js/release/util.js:16:23)
    at Java.ret [as newInstanceAsync] (eval at <anonymous> (/corenlp-server/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:15:23)
    at /corenlp-server/lib.js:23:17
    at tryCatcher (/corenlp-server/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/corenlp-server/node_modules/bluebird/js/release/promise.js:503:31)
    at Promise._settlePromise (/corenlp-server/node_modules/bluebird/js/release/promise.js:560:18)
    at Promise._settlePromise0 (/corenlp-server/node_modules/bluebird/js/release/promise.js:605:10)
    at Promise._settlePromises (/corenlp-server/node_modules/bluebird/js/release/promise.js:684:18)
    at Promise._fulfill (/corenlp-server/node_modules/bluebird/js/release/promise.js:629:18)
    at /corenlp-server/node_modules/bluebird/js/release/nodeback.js:42:21

Any ideas about what I should be doing differently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions