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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find message resources under key org.apache.struts.action.MESSAGE
 
Similar Threads
Cannot find bean: "EMPLOYEELIST" in any scope
problem with action mapping
global forwards to DispatchAction not working?
Error - Cannot create redirect URL
server encountered an internal error ;while running application