[
https://issues.apache.org/jira/browse/BVAL-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958262#comment-16958262
]
Cédric Servais commented on BVAL-179:
-------------------------------------
Hi Romain,
Indeed, I've been through the DefaultMessagerInterpolator and I couldn't figure
out why it wasn't working.
I'm using the vanilla TomEE Plus implementation (including OpenJPA, OpenEJB,
MyFaces, ..), I'm unsure that these components are adding a custom message
interpolator. Well, I could at least find from OpenJPA that integration with
Apache BVAL happens seamlessly.
OpenEJB, which is the container providing bval, doesn't mention anything else
and my logs are full of:
23-Oct-2019 22:20:03.414 FINE [http-nio-8080-exec-8]
org.apache.bval.jsr.DefaultMessageInterpolator.loadBundle ValidationMessages
23-Oct-2019 22:20:04.028 FINE [http-nio-8080-exec-8]
org.apache.bval.jsr.DefaultMessageInterpolator.loadBundle ValidationMessages
23-Oct-2019 22:20:05.143 FINE [http-nio-8080-exec-8]
org.apache.bval.jsr.DefaultMessageInterpolator.loadBundle ValidationMessages
I must admit that I'm running out of ideas on why this isn't working,
Regards,
Cédric
> ValidationMessages.properties not found
> ---------------------------------------
>
> Key: BVAL-179
> URL: https://issues.apache.org/jira/browse/BVAL-179
> Project: BVal
> Issue Type: Bug
> Components: jpa
> Affects Versions: 2.0.3
> Environment: Apache TomEE Plus 8.0.0
> OpenJDK 12
> Windows 10
> Apache Netbeans 11.1
> Reporter: Cédric Servais
> Priority: Major
>
> 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 tried to locate the possible issue but I've been quite unfortunate. Any
> help would be welcome.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)