-
Notifications
You must be signed in to change notification settings - Fork 579
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
Implementation of JAXB-API has not been found on module path or classpath. #2930
Comments
In 3.9.3+ the jaxb-runtime dependency was moved to ‘provided’:
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>[2.2,3)</version>
<scope>provided</scope>
</dependency>
This means you’ll need to independently make sure that there is a JAXB runtime on the classpath if you want to use XML configuration files. That JAXB runtime could come either from the environment itself or as an explicit dependency depending on your setup.
Chris
From: Klavdij Oberstar ***@***.***>
Date: Thursday, August 12, 2021 at 6:34 AM
To: ehcache/ehcache3 ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [ehcache/ehcache3] Implementation of JAXB-API has not been found on module path or classpath. (#2930)
Hi,
I am using Spring Boot with Ehcache 3 and Maven. After upgrading Ehcache to 3.9.3 (or later) I am getting this error:
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:232)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:375)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at org.ehcache.xml.ConfigurationParser.<init>(ConfigurationParser.java:130)
at org.ehcache.xml.XmlConfiguration.<init>(XmlConfiguration.java:114)
... 101 common frames omitted
I checked maven dependencies and in version 3.9.3 and on the org.glashfish.jaxb is missing.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#2930>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHI7W2AGL7PJSYY4QAOYILT4OPUJANCNFSM5CA2YSBA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
So I added this to my dependecies:
Same error. |
The version range expression in the provided dependency: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am using Spring Boot with Ehcache 3 and Maven. After upgrading Ehcache to 3.9.3 (or later) I am getting this error:
I checked maven dependencies and in version 3.9.3 and on the
org.glashfish.jaxb
is missing.The text was updated successfully, but these errors were encountered: