Details
-
Dependency upgrade
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
7.0.2
-
None
Description
Long story short: To fix, upgrade to newest serp-1.15.1 which supports Java 8; the one packaged with TomEE 7.0.2 (1.14.1) only supports Java 7.
I run TomEE Plus 7.0.2 on Java 8.
One of my entity classes uses Java 8 Lambdas. When I deploy the application, TomEE will map all entities except for the one that contains lambdas. There's an exception from the serp library that it can't read the class in question, but TomEE seems to continue anyway. At runtime, the EntityManager does not recognize the entity.
Replacing serp-1.14.1.jar with serp-1.15.1.jar in ${catalina}/lib fixes the problem - I suggest an upgrade to the new serp version in the next TomEE release.