Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.0.0-Final
-
None
-
None
-
Apache TomEE Plus 8.0.0
OpenJDK 12
Windows 10
Apache Netbeans 11.1
Description
Hello,
I'm using Apache TomEE for a home project and I was trying to move bean validation towards my entities. Doing so, everything is working fine. However, when I tried to use localized messages according to the specs (ValidationMessages.properties at the root of the classpath) but I've been unfortunate, my expression {users.name.notnull} is displayed as such in my rendered JSF form and it seems that no replacement is being performed by BVAL.
I've opened an issue at BVAL initially and, thanks to the help of romain.manni-bucau, I've been able to suspect a classloader issue. Testing the same code with TomEE embedded allows BVAL to find the right resource file and display the concerned message. (https://issues.apache.org/jira/projects/BVAL/issues/BVAL-179?filter=allopenissues)
Could you please have a look to this case and indicate where the issue could come from when running it as an embedded jar within TomEE ?