tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Abkhazi (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2719) ValidationMessages.properties not found
Date Tue, 03 Dec 2019 20:02:00 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16987228#comment-16987228
] 

Dmitry Abkhazi commented on TOMEE-2719:
---------------------------------------

Jonathan, please check my test

[https://github.com/dabkhazi/emapper]

> ValidationMessages.properties not found
> ---------------------------------------
>
>                 Key: TOMEE-2719
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2719
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 8.0.0-Final
>         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 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 ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message