-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot instantiate a StanfordCoreNLP pipeline in a Springboot Project using Maven #1448
Comments
As a temporary fix, I'm able to pass |
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.The text was updated successfully, but these errors were encountered: