"Unable to process Jar entry xxx for annotations" while migrating from 5.3.7 to 5.4.0 or 5.4.1

Description

Hi,
we are trying to migrate our project from Hibernate Core 5.3.7 to 5.4.0 or 5.4.1 and Hibernate Search from 5.10.5 to 5.11.0 or 5.11.1

The compilation is OK but at the server Startup we have the below exception.
We are running our server with :
Tomcat 8.0.32
JDK 1.8.0.112 x64

Many thanks for your help,

Marc

Environment

TOMCAT 8.0.32
JDK 1.8.0.112 x64

Activity

Show:
Marc Amir-Tahmasseb
February 11, 2019, 12:37 PM

Many thanks Guillaume.

Following your comment I did some tests locally by upgrading separately

  • My JDK from 1.8.0_112 to 1.8.0_161

  • My Tomcat from 8.0.32 to 8.0.47

Upgrading only the tomcat to 8.0.47 was enough to solve the problem.

As we are not managing the production servers, it will be a real challenge to request their updates :-/

Kind regards,
Marc

Sanne Grinovero
February 11, 2019, 12:45 PM

I'm not sure if it's the JDK.

Looks like Tomcat's org.apache.tomcat.util.bcel is unable to parse the module-info from several of:

  • your libraries (like FastInfoset-1.2.15.jar, txw2-2.3.1.jar, istack-commons-runtime-3.0.7.jar)

  • and some of the Hibernate dependencies (such as byte-buddy-1.9.5.jar, jaxb-runtime-2.3.1.jar).

I suspect this has nothing to do with the Hibernate upgrade since the first ones would fail even without it? Very likely your Tomcat (bcel) needs to be upgraded to deal with the new modules metadata, which is not a specific problem of Hibernate but of all recently updated libraries.

Sanne Grinovero
February 11, 2019, 12:46 PM

Ok looks like you figured it out Sorry, when posting the above comment I didn't see yours yet.

I'll close this then. Thanks anyway for letting us know!

Sanne Grinovero
February 11, 2019, 12:47 PM

Not an Hibernate issue.

Marc Amir-Tahmasseb
February 11, 2019, 1:42 PM

Dear Sanne,
Your comment was very usefull to confim my tests !
Kind regards,
Marc

Assignee

Unassigned

Reporter

Marc Amir-Tahmasseb

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.3.7

Components

Affects versions

Priority

Major
Configure