Java 9: ​​puzzle and hibernation 5.2.12 do not work

In my pom.xml file , I have only one dependency:

<dependencies>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>5.2.12.Final</version>
    </dependency>
</dependencies>

as well as module-info.java

module testmodule {
    requires hibernate.jpa;
    requires hibernate.core;
}

but when I try to start my application, I get the error message: Called: java.lang.IllegalArgumentException: jboss.transaction.api.1.2.spec: Invalid module name: '1' is not a Java identifier . Any thoughts on how to deal with this?

+3
source share
1 answer

From stacktrace, the exception does not apply to the hibernate-core module, but for the jboss-transaction-api_1.2_specone included in your project.

1.0.1.Final jar.

enter image description here

2.0.0.Alpha1 2017 , module-info.class, , .

, 2.0.0.Alpha1 java.transaction :

<dependency>
    <groupId>org.jboss.spec.javax.transaction</groupId>
    <artifactId>jboss-transaction-api_1.2_spec</artifactId>
    <version>2.0.0.Alpha1</version>
</dependency>

enter image description here

+3

Source: https://habr.com/ru/post/1690810/


All Articles