You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeff Tulley <JT...@novell.com> on 2003/10/01 20:35:59 UTC
Re: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Look into your struts.xml file; I saw this same thing with the admin
application, and the struts-config.xml file had a pathname with the
wrong case-sensitivity:
type="org.apache.webapp.admin.defaultContext.DefaultContextsForm"/>
instead of:
type="org.apache.webapp.admin.defaultcontext.DefaultContextsForm"/>
(defaultContext, instead of defaultcontext, which it should have been).
With some versions of struts and/or JVMs, this does not matter, but
suddenly for me it did with Tomcat 4.1.27 and JVM 1.4.2
You might have a similar problem.
Jeff Tulley (jtulley@novell.com)
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com
>>> hari_om@hotmail.com 10/1/03 12:00:43 PM >>>
My struts.xml file has:
------------------------------------------------------------------------------------------------------------------------------------
<message-resources parameter="ApplicationResources.properties" />
------------------------------------------------------------------------------------------------------------------------------------
My web.xml file has:
------------------------------------------------------------------------------------------------------------------------------------
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts.xml</param-value>
</init-param>
</servlet>
------------------------------------------------------------------------------------------------------------------------------------
I have 2 files:
ApplicationResources_en.properties and
ApplicationResources_fr.properties
These files are stored in WEB-INF/classes directory and is stored in
CLASSPATH.
When I run my browser, I get following wonder why:
------------------------------------------------------------------------------------------------------------------------------------
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
etc.....
------------------------------------------------------------------------------------------------------------------------------------
Any hints etc on this....?
THANKS!
_________________________________________________________________
Instant message during games with MSN Messenger 6.0. Download it now
FREE!
http://msnmessenger-download.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org