Stripes: LocalizableError can’t find string

Datetime:2016-08-23 01:57:55          Topic: EJB           Share

My project is in Java EE. I got two modules war and ejb. When I remove stripes jar from libraries of ejb module and include it to war module Localizable error works fine. But when I did that war module cant connect two ejb session bean.

Project sees the StripesResources.properties file because I can get string like that in jsp file:

 <fmt:message key="layout.otherLanguage"/>

in resources I got:

layout.otherLanguage=French

it works. But LocalizableError or SimpleError not working in actionbean file:

errors.add("username",
                new LocalizableError("primaryEmailNotFound"));

In resources file:

project.action.LoginActionBean.primaryEmailNotFound=wrong login

What can I do? Where can I put stripes.jar?





About List