aspose file tools*
The moose likes Struts and the fly likes Newbie -Struts - Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Newbie -Struts - Exception" Watch "Newbie -Struts - Exception" New topic
Author

Newbie -Struts - Exception

Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)



MY WEB.XML



Kindly help me with doing the struts application.

Thanks in advance
Karthik R


SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
David Dhune
Greenhorn

Joined: Sep 28, 2006
Posts: 14
in struts-config file try to put (at the end, just before plug-ins)


<message-resources parameter="resources.ApplicationResources">

this is the path to your ApplicationResources.properties

Hope this helps
David Dhune
Greenhorn

Joined: Sep 28, 2006
Posts: 14
Also try with commenting the following from the web.xml


Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
Then Should i have to keep the properties file
name as applicationresources?

what does resources.applicationresources mean, i should keep in WEB-INF\classes directory
one directory called resources.
Inside that i should have my resourcebundle propertyfile.
What should be the name of the file
Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
Atlast Found the Issue
The web.xml entry init param can be removed
at the same time, we need to give the message resources entry in struts config.xml and restart the tomcat
<message-resources parameter="resources.application"/>

make sure the resources folder exists in WEB-INF\classes folder.
and that folder has application.properties


web-inf/classes/
/resources
/application.properties
 
Consider Paul's rocket mass heater.
 
subject: Newbie -Struts - Exception