Application seeing messages.properties from Eclipse Yasson in the classpath instead of the application messages.properties in JBoss EAP 7.2

Solution Verified - Updated -

Issue

  • Application seeing messages.properties from Eclipse Yasson in the classpath instead of the application messages.properties in JBoss EAP 7.2

ResourceBundle and Spring Web Message tag not finding property that exists in the classpath with:

Caused by: javax.servlet.jsp.JspTagException: No message found under code 'My.Property' for locale 'en'.
    at org.springframework.web.servlet.tags.MessageTag.doEndTag(MessageTag.java:200)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content