You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hobie Orris <ho...@interlog.com> on 2002/08/12 19:42:03 UTC

Beginner's problem

I am using Struts 1.02 on Tomcat 4, and I get this message:
Cannot find message resources under key org.apache.struts.action.MESSAGE

I note the previous discussion on this topic in the archive has not pointed
to a solution, so I'm asking it again.

I deploy an .ear file containing a .war file which contains	(among others):
WEB-INF/lib/  		struts.jar, parser.jar and jaxp.jar
WEB-INF/classes/	ApplicationResources.properties
WEB-INF/			web.xml, struts-config.xml

The web.xml contains:
  <servlet>
     <servlet-name>ActionServlet</servlet-name>
     <display-name>ActionServlet</display-name>
     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
     <init-param>
       <param-name>application</param-name>
       <param-value>ApplicationResources</param-value>
     </init-param>
	...

I'm missing something here, but I don't know what.  Can someone please
advise me on this?

Hobie Orris


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Beginner's problem

Posted by Amit Badheka <am...@direct2s.com>.
Hi Hobie,

Make sure that in your war file the properties file included in
web-inf\classes folder.

or

 if you are placing this file under your source package then it should be
come under web-inf\classes\<source-package>\ApplicationResources.properties.

By having a look at your definition, I think you are placing your properties
file in different location other than source package. So make sure it is
included in web-inf\classes folder in war file.

Amit.
----- Original Message -----
From: "Hobie Orris" <ho...@interlog.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, August 12, 2002 11:12 PM
Subject: Beginner's problem


> I am using Struts 1.02 on Tomcat 4, and I get this message:
> Cannot find message resources under key org.apache.struts.action.MESSAGE
>
> I note the previous discussion on this topic in the archive has not
pointed
> to a solution, so I'm asking it again.
>
> I deploy an .ear file containing a .war file which contains (among
others):
> WEB-INF/lib/  struts.jar, parser.jar and jaxp.jar
> WEB-INF/classes/ ApplicationResources.properties
> WEB-INF/ web.xml, struts-config.xml
>
> The web.xml contains:
>   <servlet>
>      <servlet-name>ActionServlet</servlet-name>
>      <display-name>ActionServlet</display-name>
>      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>      <init-param>
>        <param-name>application</param-name>
>        <param-value>ApplicationResources</param-value>
>      </init-param>
> ...
>
> I'm missing something here, but I don't know what.  Can someone please
> advise me on this?
>
> Hobie Orris
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>