You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Avinash Sridhar <av...@email.com> on 2005/01/13 15:26:32 UTC

Still PLZ Help with Cannot find message resources under key org.apache.struts.action.MESSAGE

Hi,

   Thanks for the suggestions....After I add 

<message-resources
     parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
          null="false" />

to the struts-config.xml file, When I start-up the server, I get the following error message....

/******Error*******/

Element type "message-resources" must be declared.

AND


The content of element type "struts-config" must match "(data-sources?,form-beans?,global-forwards?,action-mappings?)".

/******Error*******/

Help towards this wud be greatly appreciated.

Thanking you 
AS


----- Original Message -----
From: "David G. Friedman" <hu...@ix.netcom.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: RE: PLZ Help with Cannot find message resources under key    org.apache.struts.action.
Date: Thu, 13 Jan 2005 00:34:55 -0500

> 
> To your struts-config.xml, have you added an entry something like this:
> 
> <message-resources
>      parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>           null="false" />
> 
> Regards,
> David
> 
> -----Original Message-----
> From: Avinash Sridhar [mailto:avinash630@email.com]
> Sent: Wednesday, January 12, 2005 10:01 PM
> To: user@struts.apache.org
> Subject: PLZ Help with Cannot find message resources under key
> org.apache.struts.action.
> 
> 
> Hi All,
> This is my directory structure
> WEB-INF i have struts-config.xml and web.xml
> WEB_INF classes / com / masslight / StrutsExampleClasses/
> ApplicationResources.properties
> Name.java
> NameForm.java
> SetNameAction.java files
> 
> /***********Error ******/
> 
> Cannot find message resources under key org.apache.struts.action.MESSAGE
> 
> /***********Error ******/
> 
> Kindly help me out with this
> 
> PS: I am using Tomcat 5.0.28, Eclipse 3.0 Struts 1.2.4.
> 
> Any Help would be greatly appreciated.......
> 
> I can give you the trace of the log files too.
> 
> Thanks in advance
> AS
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Still PLZ Help with Cannot find message resources under key org.apache.struts.action.MESSAGE

Posted by Curtis Taylor <cu...@yahoo.com>.
Hello,

This error implies Digester has a problem with your struts-config.xml 
file. If you post your struts-config.xml in its entirety it may help the 
group determine what that problem is.

HTH,

Curtis

Avinash Sridhar wrote:
> Hi,
> 
>    Thanks for the suggestions....After I add 
> 
> <message-resources
>      parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>           null="false" />
> 
> to the struts-config.xml file, When I start-up the server, I get the following error message....
> 
> /******Error*******/
> 
> Element type "message-resources" must be declared.
> 
> AND
> 
> 
> The content of element type "struts-config" must match "(data-sources?,form-beans?,global-forwards?,action-mappings?)".
> 
> /******Error*******/
> 
> Help towards this wud be greatly appreciated.
> 
> Thanking you 
> AS


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org