Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   Cannot find message resources under key org.apache.struts.action.MESSAGE
Date:   2003-08-21 01:36:06
From:   anonymous2
Response to: Error Messages

Hi ,
I am getting the folowing error when trying to execute struts example.


Exception Report:
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:442)
at org.apache.jsp.hello_jsp._jspService(hello_jsp.java:460)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)



Root Cause:javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:819)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)


I think you have faced the same problem can you please help me out.


Thanks in advance,
Rgds,
Dummu.
csdummu@yahoo.co.in

Full Threads Oldest First

Showing messages 1 through 10 of 10.

  • Cannot find message resources under key org.apache.struts.action.MESSAGE
    2003-12-30 01:19:04  anonymous2 [View]

    i had the same error message. Found "Parsing error processing resource path" in the tomcat console.
    Solution:
    Look for repetitions / typo (in the class name / init params?) in your struts-config.xml file. Correct the errors and restart. Voila!
    • Cannot find message resources under key org.apache.struts.action.MESSAGE
      2008-01-04 01:44:52  kishore_nine [View]

      Add this line into struts-config.xml

      <message-resources parameter="correct url to your resource bundle file location with full directory structure ( Like example com.bajaj.alliz.ApplicationResources)" null="false"/>
      • Cannot find message resources under key org.apache.struts.action.MESSAGE
        2008-03-19 22:30:48  dnyoen [View]

        check the struts-config syntax, probably there's unidentified char or some required character has been missing.
      • Cannot find message resources under key org.apache.struts.action.MESSAGE
        2008-03-19 20:23:51  dnyoen [View]

        check the struts-config syntax, probably there's unidentified char or some required character has been missing.
    • Cannot find message resources under key org.apache.struts.action.MESSAGE
      2008-01-04 01:43:52  kishore_nine [View]

      Add this line into struts-config.xml

      <message-resources parameter="correct url to your resource bundle file location with full directory structure ( Like example com.bajaj.alliz.ApplicationResources)" null="false"/>
  • Cannot find message resources under key org.apache.struts.action.MESSAGE
    2003-12-28 09:04:58  anonymous2 [View]

    Hi Struts folks!!
    My name is Deepak Kenchamba. I have solved the problem i had with this silly yet nagging error message.
    javax.servlet.ServletException: Cannot find message resources under key <bundle name>

    If you have tried every thing that's been documented in the other sites and still have a problem.
    Try this. Voila!! this might be the solution.

    Along with struts.jar file add

    commons-digester.jar
    commons-beanutils.jar

    files into the "/WEB-INF/lib" folder of you context root.

    Simple, our struts committer better put in friendlier error message so that its useful to the rest of the world.

    I used
    ------
    Tomcat 5.0 Web container
    struts 1.1
    Servlets 2.3 & jsp 1.2

    regards
    Deepak Kenchamba
    • Cannot find message resources under key org.apache.struts.action.MESSAGE
      2004-01-06 06:19:18  anonymous2 [View]

      Thx, this helps me.
  • Cannot find message resources under key org.apache.struts.action.MESSAGE
    2003-09-11 04:36:59  anonymous2 [View]

    Hi,
    After analysing the working of struts-validation web-application, one can find that there is one section for pointing-out the location of application.properties file.
    Just insert following line to your Struts-config.xml
    <message-resources parameter="resources.application"/>

    As you can guess, it says that the properties are defined inside /WEB-INF/resources/application.properties file.

    I hope it solves your problem.
    Thanks,
    -LalitC.
    • Cannot find message resources under key org.apache.struts.action.MESSAGE
      2003-09-17 15:57:32  anonymous2 [View]

      Unfortunately, there may be a more esoteric problem in the setup of the XML parsers in Struts, according to Ted Husted
      • Cannot find message resources under key org.apache.struts.action.MESSAGE
        2003-10-31 04:32:32  anonymous2 [View]

        I find there is a lucky way to solve the error message of "Cannot find message resources under key org.apache.struts.action.MESSAGE ".
        It's just a luck for me to solve it, even though I waste a lot of time.

        The solve way is to remove the <forward> tag that will be used in *.jsp

        I use struts-config_1_1.dtd.

        <init-param>
        <param-name>application</param-name>
        <param-value>ApplicationResources</param-value>
        </init-param> ..................in web.xml

        and write nothing about application in struts-config.xml.

        I think it may be wrong in some cases.
        Please advice me more about more material about it.
        My Email is : yk.chen@autotools.com.tw