sri valli <srivalli...@...> writes:

> errors.add("username", new LocalizableError("login.username.errorMessage")); 
in actionbean.
> where as "login.username.errorMessage" is an entry in my properties file with
some text assined to it.
>  
> but when i run my application with this validation error i am getting
following exception
> 
> exception org.apache.jasper.JasperException:
java.util.MissingResourceException: Could not find an error message with key:
login.username.errorMessage
> root cause java.util.MissingResourceException: Could not find an error message
with key: login.username.errorMessageplz help me by giving some solutions.its
very urgent.

I had something similiar where I couldnt get StripesResources.properties to
work, i.e. all LocalizableError's etc were failing.  If you can't get *any* to
work then you might have the same problem.  

The solution turned out to be moving stripes.jar from the tomcat 'lib' directory
into the 'WEB-INF/lib' directory of the app itself - i.e. moving from a shared
stripes.jar to one just for the app.  The post that I got this from mentioned
something about trying to share JARs across apps in Tomcat as leading to
'classloader hell'!

If it's just that one LocalizableError failing and the others working then this
is not your problem.  If its all of them then give it a go :)

B.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to