Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2012-04-01 Thread Dave Newton
May need more to go on.

Dave

(pardon brevity and typos, on cell)
On Apr 1, 2012 2:11 PM, "Gopinath.M"  wrote:

> Please check struts-config.xml file.
>
>


Cannot find message resources under key org.apache.struts.action.MESSAGE

2007-11-26 Thread forumuser

I tried to deploy struts application on RAD Websphere App Server 6. 
it is throwing following exception 

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE 

and on the browser it says internal server error 500


please help as what to do to run it success fully.
 
-- 
View this message in context: 
http://www.nabble.com/Cannot-find-message-resources-under-key-org.apache.struts.action.MESSAGE-tf4874805.html#a13948506
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot find message resources under key org.apache.struts.action.MESSAGE , what could cause this ?

2006-03-14 Thread Legolas Woodland

Hi
Thank you for reading my post.
I upload a web application to its host , it works OK until a few hours 
ago , and now it shows the following exception

is there any comment about this ?


javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103)
org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)

org.apache.jsp.index_jsp._jspx_meth_bean_message_0(org.apache.jsp.index_jsp:138)

org.apache.jsp.index_jsp._jspx_meth_html_html_0(org.apache.jsp.index_jsp:106)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2006-02-27 Thread Laurie Harper
Did you define the message resources in struts-config.xml? The init 
param in web.xml isn't used in current versions of Struts. Make sure you 
have this in your struts-config:


  

L.

red phoenix wrote:

I have configure my properties file,but when run,it raise error and say
can't find message key,my files are follows:
/*index.jsp*/
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>

...



/*application.properties*/
error.header=
error.footer=
error.stime.required=This is a test

/*LogmanageForm.java*/
...
public ActionErrors validate(ActionMapping mapping,HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
..
errors.add("logstime",new ActionError("error.stime.required"));
return errors;
}

/*web.xml*/

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

  
  
   action
org.apache.struts.action.ActionServlet
  
  application
  resources.application

...


/*struts-config.xml*/

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

  

  
  

  

  


application.properties is locate follow directory:
C:\tomcat5\webapps\Log\WEB-INF\classes\resources\application.properties

When the JSP execute ,it raise following
error:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:791)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:91)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1062)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(
RequestProcessor.java:1000)
org.apache.struts.action.RequestProcessor.processValidate(
RequestProcessor.java:965)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:204)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I have configure the application.properties,why raise above error?
Thanks in advance!

Best Regards,
phoenix




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2006-02-27 Thread Dharmendra Singh
Dear
First give the right tag URI in right form  in index.jsp
whatever u have given in web.xml


On 2/27/06, red phoenix <[EMAIL PROTECTED]> wrote:
>
> I have configure my properties file,but when run,it raise error and say
> can't find message key,my files are follows:
> /*index.jsp*/
> <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>
> 
> ..
> 
> 
>
> /*application.properties*/
> error.header=
> error.footer=
> error.stime.required=This is a test
>
> /*LogmanageForm.java*/
> ..
> public ActionErrors validate(ActionMapping mapping,HttpServletRequest
> request) {
>ActionErrors errors = new ActionErrors();
>..
>errors.add("logstime",new ActionError("error.stime.required"));
>return errors;
> }
>
> /*web.xml*/
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
>   action
>org.apache.struts.action.ActionServlet
> 
>  application
>  resources.application
>
> ..
>
>
> /*struts-config.xml*/
> 
>   "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
>  "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
> 
>
> 
> 
>   type="com.LogmanageAction"
>   name="logmanageForm"
>   validate="true"
>   input="/index.jsp">
>  
>
> 
> 
>
> application.properties is locate follow directory:
> C:\tomcat5\webapps\Log\WEB-INF\classes\resources\application.properties
>
> When the JSP execute ,it raise following
> error:
> javax.servlet.ServletException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
> PageContextImpl.java:858)
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImpl.java:791)
> org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:91)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :332)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
> :1062)
> org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(
> RequestProcessor.java:1000)
> org.apache.struts.action.RequestProcessor.processValidate(
> RequestProcessor.java:965)
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
> :204)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> I have configure the application.properties,why raise above error?
> Thanks in advance!
>
> Best Regards,
> phoenix
>
>


Cannot find message resources under key org.apache.struts.action.MESSAGE

2006-02-27 Thread red phoenix
I have configure my properties file,but when run,it raise error and say
can't find message key,my files are follows:
/*index.jsp*/
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>

..



/*application.properties*/
error.header=
error.footer=
error.stime.required=This is a test

/*LogmanageForm.java*/
..
public ActionErrors validate(ActionMapping mapping,HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
..
errors.add("logstime",new ActionError("error.stime.required"));
return errors;
}

/*web.xml*/

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

  
  
   action
org.apache.struts.action.ActionServlet
  
  application
  resources.application

..


/*struts-config.xml*/

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

  

  
  

  

  


application.properties is locate follow directory:
C:\tomcat5\webapps\Log\WEB-INF\classes\resources\application.properties

When the JSP execute ,it raise following
error:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:791)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:91)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1062)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(
RequestProcessor.java:1000)
org.apache.struts.action.RequestProcessor.processValidate(
RequestProcessor.java:965)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:204)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I have configure the application.properties,why raise above error?
Thanks in advance!

Best Regards,
phoenix


RE: "Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-20 Thread EROL TEZCAN


"McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]> wrote:I'm not sure what you are 
saying here.


When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .


Are you saying that everything is ok now? Or are you saying that you
have two projects which *appear* to be the same and that one is working
whilst the other is failing with the "Cannot find message resources
under key org.apache.struts.action.MESSAGE" error?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2005 15:53
To: Struts Users Mailing List
Subject: RE: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Yes, there is a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder, it has key/value like
"app.title=Wiley Employee Sample"

When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .



"McDonnell, Colm (MLIM)" wrote:
Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2005 14:31
To: sturts_apache_user sturts_apache_user
Subject: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Hi All,

I am working to run an example in Mastering Jakarta Struts Chapter 11 .

When I want to run this application , I got an error.

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]


In login.jsp at row 8 : 

I defined app.title key in ApplicationResources.properties file and ve
this file is defined like 



in struts-config.xml file.

Also, in login.jsp struts-taglibs are defined like 




Why it gives this error and how can I solve?

Erol


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain or redistribute it. Click here for important additional terms
relating to this e-mail. http://www.ml.com/email_terms/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football

RE: "Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-17 Thread McDonnell, Colm (MLIM)
I'm not sure what you are saying here.


When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .


Are you saying that everything is ok now? Or are you saying that you
have two projects which *appear* to be the same and that one is working
whilst the other is failing with the "Cannot find message resources
under key org.apache.struts.action.MESSAGE" error?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2005 15:53
To: Struts Users Mailing List
Subject: RE: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Yes, there is a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder, it has key/value like
"app.title=Wiley Employee Sample"
 
When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .
 


"McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]> wrote:
Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2005 14:31
To: sturts_apache_user sturts_apache_user
Subject: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Hi All,

I am working to run an example in Mastering Jakarta Struts Chapter 11 .

When I want to run this application , I got an error.

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]


In login.jsp at row 8 : 

I defined app.title key in ApplicationResources.properties file and ve
this file is defined like 



in struts-config.xml file.

Also, in login.jsp struts-taglibs are defined like 




Why it gives this error and how can I solve?

Erol


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain or redistribute it. Click here for important additional terms
relating to this e-mail. http://www.ml.com/email_terms/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: "Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-17 Thread EROL TEZCAN
Yes, there is a file named ApplicationResources.properties in the 
WEB-INF/classes/employees/view folder, it has key/value like "app.title=Wiley 
Employee Sample"
 
When I create a new project with same properties file key/value 
(app.title=Wiley Employee Sample), it works well .
 


"McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]> wrote:
Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2005 14:31
To: sturts_apache_user sturts_apache_user
Subject: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Hi All,

I am working to run an example in Mastering Jakarta Struts Chapter 11 .

When I want to run this application , I got an error.

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]


In login.jsp at row 8 : 

I defined app.title key in ApplicationResources.properties file and ve
this file is defined like 



in struts-config.xml file.

Also, in login.jsp struts-taglibs are defined like 




Why it gives this error and how can I solve?

Erol


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: "Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-17 Thread Martin Gainty

Greetings all
If I might add to Mr McDonnell's commentary-

You can also handle message strings thru your init-param in your Struts 
servlet descriptor (web.xml)


application

   com.mycompany.mypackage.MyResources



OR you can add  tag in struts-config.xml

where packagename is a folder off of web-inf/classes

Aigh Vie,
Martin-

- Original Message - 
From: "McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Friday, June 17, 2005 9:36 AM
Subject: RE: "Cannot find message resources under key 
org.apache.struts.action.MESSAGE " Error



Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED]
Sent: 17 June 2005 14:31
To: sturts_apache_user sturts_apache_user
Subject: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Hi All,

I am working to run an example in Mastering Jakarta Struts Chapter 11 .

When I want to run this application , I got an error.

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]


In login.jsp at row 8 : 

I defined app.title key in ApplicationResources.properties file and ve
this file is defined like



in struts-config.xml file.

Also, in login.jsp struts-taglibs are defined like

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

Why it gives this error and how can I solve?

Erol


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


If you are not an intended recipient of this e-mail, please notify the 
sender, delete it and do not read, act upon, print, disclose, copy, retain 
or redistribute it. Click here for important additional terms relating to 
this e-mail. http://www.ml.com/email_terms/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: "Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-17 Thread McDonnell, Colm (MLIM)
Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?


-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2005 14:31
To: sturts_apache_user sturts_apache_user
Subject: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error


Hi All,
 
I am working to run an example in Mastering Jakarta Struts Chapter 11 .
 
When I want to run this application , I got an error.
 
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]

 
In login.jsp at row 8 :  
 
I defined app.title key in ApplicationResources.properties file and ve
this file is defined like 
 
 
 
in struts-config.xml file.
 
Also, in login.jsp struts-taglibs are defined like 
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
 
Why it gives this error and how can I solve?
 
Erol


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



"Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-17 Thread EROL TEZCAN
Hi All,
 
I am working to run an example in Mastering Jakarta Struts Chapter 11 .
 
When I want to run this application , I got an error.
 
javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at 
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]

 
In login.jsp at row 8 :  
 
I defined app.title key in ApplicationResources.properties file and ve this 
file is defined like 
 
 
 
in struts-config.xml file.
 
Also, in login.jsp struts-taglibs are defined like 
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
 
Why it gives this error and how can I solve?
 
Erol


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

2005-01-16 Thread Curtis Taylor
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 suggestionsAfter I add 


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

2005-01-13 Thread Todd_Nine

Your first issue is a result of your second.  The XML parser is telling you that
your format did not match the DTD.  In the config, the elements must be in the
order of

1. data-sources
2. form-beans
3. global-forwards
4. action-mappings
5. messages and plugins.

for instance I have.






  ...




  ...




  ...







  



Hope that helps.

Todd


|-+>
| |   "Avinash Sridhar"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   01/13/2005 09:26 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>---|
  | 
  |
  |   To:   "Struts Users Mailing List" 
  |
  |   cc:   
      |
  |       Subject:  Still PLZ Help with Cannot find message resources under key 
   org.apache.struts.action.MESSAGE   |
  
>---|




Hi,

   Thanks for the suggestionsAfter I add



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" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
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:
>
>   parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>   null="false" />
>
> Regards,
> David
>
> -Original Message-
> From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2005-01-13 Thread Avinash Sridhar
Hi,

   Thanks for the suggestionsAfter I add 



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" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
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:
> 
>   parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>   null="false" />
> 
> Regards,
> David
> 
> -Original Message-
> From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2005-01-12 Thread Kishore Senji
Do you have the  defined in the struts-config.xml
or as an init-param in the web.xml?


On Wed, 12 Jan 2005 22:01:05 -0500, Avinash Sridhar
<[EMAIL PROTECTED]> wrote:
> 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
> --
> ___
> Sign-up for Ads Free at Mail.com
> http://promo.mail.com/adsfreejump.htm
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: PLZ Help with Cannot find message resources under key org.apache.struts.action.

2005-01-12 Thread David G. Friedman
To your struts-config.xml, have you added an entry something like this:



Regards,
David

-Original Message-
From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please Help with this error Cannot find message resources under key org.apache.struts.action.MESSAGE

2005-01-12 Thread Avinash Sridhar
Hi All,

Do Excuse my reposting, but i cant seem to figure it out.help wud be 
greatly appreciated


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
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2005-01-12 Thread Avinash Sridhar
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
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Charl Gerber
OK, I got it working it seems you know HAVE to
specify the resouces in the struts configuration as



and not in the web.xml anymore as a parameter to the
action servlet.

Might be helpful to other people.

Charl



parameter="com.systemmobile.example.ApplicationResources"/>

 --- Charl Gerber <[EMAIL PROTECTED]> wrote: 
> The file is definitely there:
> 
> ApplicationResources.properties
> in my WEB-INF/classes, configured as:
> 
>   
> action
>
>
org.apache.struts.action.ActionServlet
> 
>   application
>  
> ApplicationResources
> 
> 
>   config
>  
> /WEB-INF/conf/struts.xml
> 
> 
>   debug
>   2
> 
> 2
>   
> 
> Any other ideas?
> 
> 
> 
>  --- "Carl F. Hall" <[EMAIL PROTECTED]> wrote: 
> > I had this problem when I didn't have a message
> > resources file.  I don't use
> > one currently so I had to create a blank file then
> > reference it in my
> > struts-config file.
> > 
> > Hope this helps. 
> > 
> > -Original Message-
> > From: Charl Gerber [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, October 25, 2004 3:02 PM
> > To: Struts Users Mailing List
> > Subject: Cannot find message resources under key
> > org.apache.struts.action.MESSAGE
> > 
> > I've upgraded from Struts 1.1 to 1.2.4. The only
> > changes are the new jars and ActionError has been
> > replaced by ActionMessage. Nothing else. Now I get
> > the
> > exception:
> > 
> > Cannot find message resources under key
> > org.apache.struts.action.MESSAGE
> > 
> > I read it might have something to do with xml
> > parsers,
> > but I have made sure that only xerces 2.6.2 is in
> my
> > WEB-INF/lib.
> > 
> > Any other ideas what this could be?
> > 
> > Thanks.
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> >  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Charl Gerber
The file is definitely there:

ApplicationResources.properties
in my WEB-INF/classes, configured as:

  
action
   
org.apache.struts.action.ActionServlet

  application
  ApplicationResources


  config
 
/WEB-INF/conf/struts.xml


  debug
  2

2
  

Any other ideas?



 --- "Carl F. Hall" <[EMAIL PROTECTED]> wrote: 
> I had this problem when I didn't have a message
> resources file.  I don't use
> one currently so I had to create a blank file then
> reference it in my
> struts-config file.
> 
> Hope this helps. 
> 
> -Original Message-
> From: Charl Gerber [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 25, 2004 3:02 PM
> To: Struts Users Mailing List
> Subject: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> 
> I've upgraded from Struts 1.1 to 1.2.4. The only
> changes are the new jars and ActionError has been
> replaced by ActionMessage. Nothing else. Now I get
> the
> exception:
> 
> Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> 
> I read it might have something to do with xml
> parsers,
> but I have made sure that only xerces 2.6.2 is in my
> WEB-INF/lib.
> 
> Any other ideas what this could be?
> 
> Thanks.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Carl F. Hall
I had this problem when I didn't have a message resources file.  I don't use
one currently so I had to create a blank file then reference it in my
struts-config file.

Hope this helps. 

-Original Message-
From: Charl Gerber [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 25, 2004 3:02 PM
To: Struts Users Mailing List
Subject: Cannot find message resources under key
org.apache.struts.action.MESSAGE

I've upgraded from Struts 1.1 to 1.2.4. The only
changes are the new jars and ActionError has been
replaced by ActionMessage. Nothing else. Now I get the
exception:

Cannot find message resources under key
org.apache.struts.action.MESSAGE

I read it might have something to do with xml parsers,
but I have made sure that only xerces 2.6.2 is in my
WEB-INF/lib.

Any other ideas what this could be?

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Charl Gerber
I've upgraded from Struts 1.1 to 1.2.4. The only
changes are the new jars and ActionError has been
replaced by ActionMessage. Nothing else. Now I get the
exception:

Cannot find message resources under key
org.apache.struts.action.MESSAGE

I read it might have something to do with xml parsers,
but I have made sure that only xerces 2.6.2 is in my
WEB-INF/lib.

Any other ideas what this could be?

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot find message resources......

2004-08-17 Thread Saurabh Bhatla
Hi all, 
  I got the following exception in struts-example on the very first page


exception

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:101)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103)
org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
org.apache.jsp.logon_jsp._jspx_meth_bean_message_0(logon_jsp.java:166)
org.apache.jsp.logon_jsp._jspx_meth_html_html_0(logon_jsp.java:123)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:92)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


 Why am i getting this exception

regards
saurabh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]