Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   Error Messages
Date:   2003-01-10 21:14:03
From:   jodeo
As noted in earlier thread, here are some error messages I could use assistance with:


1. Here's the display in terminal when I run my stop_tomcat.sh script:


Using CATALINA_BASE: /Library/Tomcat
Using CATALINA_HOME: /Library/Tomcat
Using CATALINA_TMPDIR: /Library/Tomcat/temp
Using JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Home
Exception in thread "main" java.lang.NoClassDefFoundError: /System/Library/Frameworks/JavaVM/framework/Home/lib/dt/jar:/System/Library/Frameworks/JavaVM/framework/Home/jre/lib/i18n/jar:/Library/Tomcat/webapps/cfusion/WEB-INF/cfusion/lib/webchartsJava2D/jar


(Tomcat does not shut down.)


2. Here's the "root cause' portion of the errors I get when I click Administrator in the Tomcat admin:


javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:188)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:491)



Any ideas?



THANKS!!!



Jodeo

Full Threads Oldest First

Showing messages 1 through 15 of 15.

  • Cannot find message resources under key org.apache.struts.action.MESSAGE
    2003-08-21 01:36:06  anonymous2 [View]

    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
    • 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
  • Cannot find message resources under key org.apache.struts.action.MESSAGE
    2003-08-21 01:35:19  anonymous2 [View]

    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.
  • Error Messages
    2003-01-11 00:45:37  dicklacara [View]

    A couple of thoughts:

    Are you ysing Jaguar?

    I installed Tomcat using the procedure at:

    http://www.macdevcenter.com/pub/a/mac/2002/06/18/tomcat.html

    You might want to reinstall Tomcat & then CFMX for J2EE.

    Also, have a look at JRun -- free, easy to install, connects to Apache (no port required), has Clustering and Load Balancing, and iss Certified J2EE-compliant.

    Dick

    P.S. I have both JRun and Tomcat installs of CFMX boot at startup

    Dick
    • Error Messages
      2003-01-11 10:03:49  jodeo [View]

      JRun -- FREE?
      I'm such a dolt. I had no idea. I'll try that and trash my earlier install of Tomcat (after I get JRun running).

      Thanks Dick. You're fabulous!

      PS: I too started with Apple's Tomcat install and didn't quite get it working. After looking at O'Reilly's article I finally found clues that helped me get it going.
      • Error Messages
        2003-01-12 09:29:09  dicklacara [View]

        I don't know that I'd trash the Tomcat install -- It is a good system.

        I have found the O'Reilly articles a little easier to execute than the Apple articles (I think there is more attention to those of us without Unix backgrounds).

        I just installed MySQL, according to Apple's instructions -- you need to read between the lines and/or deviate from the instructions to sucessfully complete the install.

        Dick