wood burning stoves*
The moose likes Struts and the fly likes Cannot find message resources under key org.apache.struts.action.MESSAGE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find message resources under key org.apache.struts.action.MESSAGE" Watch "Cannot find message resources under key org.apache.struts.action.MESSAGE" New topic
Author

Cannot find message resources under key org.apache.struts.action.MESSAGE

Navgire Parikshit
Greenhorn

Joined: Jan 31, 2011
Posts: 3
Hi all!

i have put MessageResouces.properties file in WEB-INF/classes.
My struts-config looks like following

Everything seems correct but still i get this exception : Cannot find message resources under key org.apache.struts.action.MESSAGEI am using eclipse IDE. Can anyone give me some pointers ???
Jaimesh M Ponkia
Greenhorn

Joined: Nov 24, 2010
Posts: 21
Put the resource file in your java source folder so that it gets copied everytime a build happens.

Also, verify if the resource file is getting copied correctly to the deployment folder in your workspace.

".metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"
Navgire Parikshit
Greenhorn

Joined: Jan 31, 2011
Posts: 3
Hi Jaimesh,
I checked the deployment folder and the file does get copied there. I also tried to keep resource file in the src folder. But nothing worked. Could this be the issue of STRUTS version? I checked the STRUTS.jar file. I didn't get the Message class in the package org.apache.struts.action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot find message resources under key org.apache.struts.action.MESSAGE