Giter Site home page Giter Site logo

hibernate-orm-xml-java11's Introduction

Hibernate orm.xml Java 11 issue

This project is a showcase of an issue I phase as I want to migrate a java8 project to java 11.

Context

On a project, we have an orm.xml file for hibernate mapping. This project is actually build and run in java 8. We want to upgrade it to java 11 (and later to java 17).

With JDK 8

When using a jdk8 for the maven build mvn clean install. StaticModel class are perfectly generated in "target/generated-sources/annotations".

generated-sources.png

With JDK 11

When using a jdk11 for the maven build mvn clean install. StaticModel class are not generated and "target/generated-sources/annotations" is empty.

generated-sources-java11.png

No errors are present in maven log.

Maven debug search

With a debug point in org.hibernate.jpamodelgen.xml.JpaDescriptorParser#L153. I manage to retrieve the real error message.

JpaDescriptorParser_breakPoint.png

Error message

Implementation of JAXB-API has not been found on module path or classpath.

Du to the removal of jaxb in Java 11

How to fix ?

hibernate-orm-xml-java11's People

Contributors

laurentschoelens avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.