# CoreNLP 1.2 jar error at startup with Stardog 7.3.0

**URL:** <https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453>\
**Category:** Support\
**Created:** [May 19, 2020, 6:03pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453 "2020-05-19T18:03:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamaebrown](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kamaebrown](https://community.stardog.com/u/kamaebrown)\
**Post date:** [May 19, 2020, 6:03pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/1 "2020-05-19T18:03:03Z")

</div>

I'm trying to use the latest corenlp jar (v. 1.2), running the latest stardog image (7.3.0) through docker. I am passing the environment variable STARDOG\_EXT=/var/opt/stardog/ext (where I've stored the file) when I first run command line. When I do this I get the error:

```
docker run -it -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 --env STARDOG_EXT=/var/opt/stardog/ext stardog/stardog

```

> An unexpected error occurred.
> 
> java.util.ServiceConfigurationError: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene40.Lucene40Codec
> 
> Waiting for running tasks to complete...done. Executor service has been shut down.
> 
> Stardog server 7.3.0 shutdown on Tue May 19 18:00:41 UTC 2020.

When I don't pass the environment variable stardog runs fine and I can use the other rdf extractors, so I'm thinking its the corenlp jar file. Is there modifications I need to do to be able to utilize corenlp?

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [May 19, 2020, 6:55pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/2 "2020-05-19T18:55:43Z")

</div>

Can you share the complete list of files you placed in STARDOG\_EXT?

---

<div class="post-metadata">

**Author:** ![kamaebrown](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kamaebrown](https://community.stardog.com/u/kamaebrown)\
**Post date:** [May 19, 2020, 7:24pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/3 "2020-05-19T19:24:21Z")

</div>

Thanks for the help Jess!

I only have the one jar file and some of the openNLP files from the tutorial.

bites-corenlp-all-1.2.jar  
en-ner-person.bin  
en-sent.bin  
en-token.bin

---

<div class="post-metadata">

**Author:** ![kamaebrown](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kamaebrown](https://community.stardog.com/u/kamaebrown)\
**Post date:** [May 21, 2020, 7:43pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/4 "2020-05-21T19:43:10Z")

</div>

were you able to figure out if I was doing something wrong in loading the corenlp jar?

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [May 21, 2020, 8:02pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/5 "2020-05-21T20:02:41Z")

</div>

I think I see what the problem is and we need to fix it and build a new release.

---

<div class="post-metadata">

**Author:** ![kamaebrown](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kamaebrown](https://community.stardog.com/u/kamaebrown)\
**Post date:** [May 22, 2020, 1:44pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/6 "2020-05-22T13:44:54Z")

</div>

great... looking forward to it! If there is any work arounds you figure out I'd appreciate it.

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [May 28, 2020, 4:35pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/7 "2020-05-28T16:35:23Z")

</div>

Can you remove the bite-corenlp file and replace it with this one and give it a try?

[https://drive.google.com/file/d/1p6TSLrOFjELKdxmKLQCfPVmTr0E131SS/view?usp=sharing](https://drive.google.com/file/d/1p6TSLrOFjELKdxmKLQCfPVmTr0E131SS/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![kamaebrown](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kamaebrown](https://community.stardog.com/u/kamaebrown)\
**Post date:** [May 28, 2020, 6:59pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/8 "2020-05-28T18:59:11Z")

</div>

This time it started up Stardog without a hitch but when I tried to use the extractors I got this error:

Error creating edu.stanford.nlp.process.AmericanizeFunction

here's the full terminal commands and output:

$docker exec -it 'myContainerID' /opt/stardog/bin/stardog-admin db create -o search.enabled=true docs.opennlp.models.path=/var/opt/stardog -n projectData

Successfully created database 'projectData'.

$docker exec -it 'myContainerID' /opt/stardog/bin/stardog doc put projectData -r CoreNLPMentionRDFExtractor,CoreNLPRelationRDFExtractor,CoreNLPEntityLinkerRDFExtractor var/opt/stardog/example.txt

Error creating edu.stanford.nlp.process.AmericanizeFunction

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [May 28, 2020, 8:46pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/9 "2020-05-28T20:46:13Z")

</div>

Ok, one last time. I was able to successfully run with this.

[https://drive.google.com/file/d/1xy0D8x4tWKObk1PW8LJLmDO5Mdy\_IG2P/view?usp=sharing](https://drive.google.com/file/d/1xy0D8x4tWKObk1PW8LJLmDO5Mdy_IG2P/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![kamaebrown](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kamaebrown](https://community.stardog.com/u/kamaebrown)\
**Post date:** [May 29, 2020, 2:20pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/10 "2020-05-29T14:20:15Z")

</div>

Thanks Zachary! It works now

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 12, 2020, 2:20pm UTC](https://community.stardog.com/t/corenlp-1-2-jar-error-at-startup-with-stardog-7-3-0/2453/11 "2020-06-12T14:20:21Z")

</div>

Closed on June 12, 2020, 2:20pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
