You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "linghengqian (via GitHub)" <gi...@apache.org> on 2023/07/11 09:54:50 UTC

[GitHub] [shardingsphere] linghengqian commented on issue #26896: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.

linghengqian commented on issue #26896:
URL: https://github.com/apache/shardingsphere/issues/26896#issuecomment-1630523622

   - Can you provide an example?
   
   - One issue that must be noted is that JDK 9 starts removing `java.xml.bind` packages. For JAXB's API, you can use glassfish or a third-party vendor's javax implementation of JAXB. I'm assuming you're using Maven, which is adding a specific version of the dependency to `pom.xml`.
   ```xml
   <dependency>
       <groupId>org.glassfish.jaxb</groupId>
       <artifactId>jaxb-runtime</artifactId>
       <version>2.3.8</version>
   </dependency>
   ```
   - Refer to  https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-Java-9-and-above#jaxb and https://github.com/ehcache/ehcache3/blob/v3.10.8/docs/src/docs/asciidoc/user/getting-started.adoc .
   - `org.glassfish.jaxb:jaxb-runtime:3.0.0` starts with the jakarta namespace. Switching to a later version of the JAXB API is being discussed in https://github.com/apache/shardingsphere/issues/26041#issuecomment-1581880874.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org