facebook

Error when running BasicAction (MyEclipse Struts tutorial)

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239613 Reply

    Marc Siramy
    Member

    Hello,

    I\’m looking for solutionning a problem I\’ve found by doing the Struts Tutorial, in the \’BasicAction\’ section. I don\’t have WebLogic for deploying the application and I \’ve tried to deploy it on Tomcat 5 and in JBoss. The deploy process work, even if I deploy BasicAction app. with the help of my Eclipse or by pasting directly the .war file given with the source of the tutorial.
    When I launch browser at http://localhost:8080/BasicAction/ it correctly display the Index.jsp . But I click on the link (Echo in), the browser displays the following error:

    
    HTTP Status 500 -
     type Exception report
    message
     description The server encountered an internal error () that prevented it from fulfilling this request. exception
     javax.servlet.ServletException: No getter method for property message of bean org.apache.struts.taglib.html.BEAN org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.jsp.pages.Echo_jsp._jspService(org.apache.jsp.jsp.pages.Echo_jsp:99)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     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:810)
     org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    internalModuleRelativeForward(RequestProcessor.java:1012)
     org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    > root cause
    > javax.servlet.jsp.JspException: No getter method for property message of bean org.apache.struts.taglib.html.BEAN
    > org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
    > org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
    > org.apache.jsp.jsp.pages.Echo_jsp._jspx_meth_html_text_0(org.apache.jsp.jsp.pages.Echo_jsp:240)
    > org.apache.jsp.jsp.pages.Echo_jsp._jspx_meth_html_form_0(org.apache.jsp.jsp.pages.Echo_jsp:204)
    > org.apache.jsp.jsp.pages.Echo_jsp._jspx_meth_html_html_0(org.apache.jsp.jsp.pages.Echo_jsp:141)
    > org.apache.jsp.jsp.pages.Echo_jsp._jspService(org.apache.jsp.jsp.pages.Echo_jsp:91)
    > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    > 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:810)
    > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    > org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
    > org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
    > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
    > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    

    I’ll thank for any help

    Marc

    #239698 Reply

    Riyad Kalla
    Member

    Marc,
    This really isn’t enough information to go on. Please paste the code for your ActionForm, and the code for your JSP page that uses the message property in it that is throwing this exception and possibly your struts-config file.

    #240039 Reply

    Marc Siramy
    Member

    Hello,
    I apalogize about this error which is due to my own:
    I forgot the ” getMessage() ” method in com.nscorp.struts_class.form.EchoForm class.

    Now I have an ” Validation Error ” message displayed in browser. Because it’s late now for me,
    I’ll take a look on it tomorrow.

    Marc

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Error when running BasicAction (MyEclipse Struts tutorial)

You must be logged in to post in the forum log in