Open clxxiii opened 6 months ago
As a temporary fix, I'm able to pass props.setProperty("ner.useSUTime", "0");
to the NLP constructor to disable the problematic import.
What version Java? There are Java versions where the current release of jollyday isn't compatible. There are a few library upgrades we could make which would better support all versions of Java 17, for example.
This is Java 21
JAX-B Java XML binding is since Java 11 no longer part of Java.
Libraries for JAX-B (API, implementation and runtime) have to be included as dependencies:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.4</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>4.0.5</version>
</dependency>
In my project it works with Java 21 and Spring Boot 3, but Spring Boot 3 is the release with jakarta migration.
I made a super simple example maven project, that has two dependencies: stanford-corenlp and spring-boot-starter-web, and got the
pom.xml
trimmed down as much as I know how.My example project only has one file, an
App.java
with a main class which only makes a StanfordCoreNLP pipeline.Running this main function results in the following error:
These two libraries share zero of the same dependencies (which you can verify if you recreate my setup you can use
mvn depenency:tree
). Both libraries have similarslf4j
dependencies, but excluding these dependencies from both sides still causes the same issue.