Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-24

Struts on Orion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • Future
    • None
    • Example Applications
    • None
    • Operating System: All
      Platform: PC
    • 544

    Description

      I am try to get familar with struts framework from jakarta.
      Can you please help me with error

      Thanks

      I am getting the following error when trying to do
      http://localhost/struts-example

      first i got the error javax.servlet.jsp.JspException: Missing resources
      attributeorg.apache.struts.action.MESSAGE
      and followed the instructions at the website then I am able to see the page with

      ------------------------------------------------------
      MailReader Demonstration Application Options
      Register with the MailReader Demonstration Application
      Log on to the MailReader Demonstration Application

      A Walking Tour of the Example Application
      -------------------------------------------

      but the (Orion)Application server CONSOLE HAS LIST OF ERRORS
      and when i try to access MailReader Demonstration Application Options.... LINK
      I get error page saying "page cannot be found"
      and the log file has

      -----------
      In Log file
      ------------
      2/7/01 3:13 PM strutsExamples: 1.4.5 Started
      2/7/01 3:13 PM strutsExamples: org.apache.struts.action.ActionServlet:
      Processing a GET for /editRegistration
      2/7/01 3:13 PM strutsExamples: org.apache.struts.action.ActionServlet: No
      mapping available for path /editRegistration

      if I try to access link Log on to the MailReader Demonstration Application
      Error javax.servlet.jsp.JspException: Cannot retrieve mapping for action /logon
      at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:697)
      at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
      at /logon.jsp._jspService(/logon.jsp.java:84) (JSP page line 14)
      at com.orionserver.http.OrionHttpJspPage.service(JAX)
      at com.evermind.server.http.HttpApplication.xj(JAX)
      at com.evermind.server.http.JSPServlet.service(JAX)
      at com.evermind.server.http.d3.sw(JAX)
      at com.evermind.server.http.d3.su(JAX)
      at com.evermind.server.http.ef.s1(JAX)
      at com.evermind.server.http.ef.do(JAX)
      at com.evermind.util.f.run(JAX)

      --------------------------------------------------------------------
      CONSOLE LIST OF ERROR DURING LOADING http://localhost/struts-example
      --------------------------------------------------------------------

      New org.apache.struts.example.User
      Set org.apache.struts.example.User properties
      New org.apache.struts.example.Subscription
      Set org.apache.struts.example.Subscription properties
      Call org.apache.struts.example.Subscription.setUser(User[username=user,
      fullName=John Q. User])
      Pop org.apache.struts.example.Subscription
      New org.apache.struts.example.Subscription
      Set org.apache.struts.example.Subscription properties
      Call org.apache.struts.example.Subscription.setUser(User[username=user,
      fullName=John Q. User])
      Pop org.apache.struts.example.Subscription
      Call org.apache.struts.example.DatabaseServlet.addUser(User[username=user,
      fullName=John Q. Use
      ])
      Pop org.apache.struts.example.User
      register('-//Apache Software Foundation//DTD Struts Configuration
      1.0//EN', 'jndi://C_/jakarta-
      truts/webapps/struts-example/WEB-
      INF/lib/struts.jar/org/apache/struts/resources/struts-config_1
      0.dtd'
      Parse Warning at line 11 column -1: Valid documents must have a <!DOCTYPE
      declaration.
      org.xml.sax.SAXParseException: Valid documents must have a <!DOCTYPE
      declaration.
      at com.sun.xml.parser.Parser.warning(Parser.java:2783)
      at com.sun.xml.parser.Parser.parseInternal(Parser.java:483)
      at com.sun.xml.parser.Parser.parse(Parser.java:284)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
      at org.apache.struts.digester.Digester.parse(Digester.java:716)
      at org.apache.struts.action.ActionServlet.initMapping
      (ActionServlet.java:1249)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:438)
      at javax.servlet.GenericServlet.init(GenericServlet.java:232)
      at com.evermind.server.http.HttpApplication.w1(JAX)
      at com.evermind.server.http.HttpApplication.wj(JAX)
      at com.evermind.server.http.HttpApplication.wu(JAX)
      at com.evermind.server.http.HttpApplication.v4(JAX)
      at com.evermind.server.http.HttpApplication.<init>(JAX)
      at com.evermind.server.Application.ur(JAX)
      at com.evermind.server.http.el.ur(JAX)
      at com.evermind.server.http.ek.nm(JAX)
      at com.evermind.server.http.ef.s1(JAX)
      at com.evermind.server.http.ef.do(JAX)
      at com.evermind.util.f.run(JAX)
      Parse Error at line 11 column -1: Element type "action-mappings" is not
      declared.
      org.xml.sax.SAXParseException: Element type "action-mappings" is not declared.
      at com.sun.xml.parser.Parser.error(Parser.java:2795)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1286)
      at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
      at com.sun.xml.parser.Parser.parse(Parser.java:284)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
      at org.apache.struts.digester.Digester.parse(Digester.java:716)
      at org.apache.struts.action.ActionServlet.initMapping
      (ActionServlet.java:1249)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:438)
      at javax.servlet.GenericServlet.init(GenericServlet.java:232)
      at com.evermind.server.http.HttpApplication.w1(JAX)
      at com.evermind.server.http.HttpApplication.wj(JAX)
      at com.evermind.server.http.HttpApplication.wu(JAX)
      at com.evermind.server.http.HttpApplication.v4(JAX)
      at com.evermind.server.http.HttpApplication.<init>(JAX)
      at com.evermind.server.Application.ur(JAX)
      at com.evermind.server.http.el.ur(JAX)
      at com.evermind.server.http.ek.nm(JAX)
      at com.evermind.server.http.ef.s1(JAX)
      at com.evermind.server.http.ef.do(JAX)
      at com.evermind.util.f.run(JAX)
      Parse Error at line 14 column -1: Element type "forward" is not declared.
      org.xml.sax.SAXParseException: Element type "forward" is not declared.
      at com.sun.xml.parser.Parser.error(Parser.java:2795)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1286)
      at com.sun.xml.parser.Parser.content(Parser.java:1499)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)

      and Error goes on till
      Parse Error at line 65 column -1: Attribute "name" is not declared for
      element "forward
      org.xml.sax.SAXParseException: Attribute "name" is not declared for
      element "forward".
      at com.sun.xml.parser.Parser.error(Parser.java:2795)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1357)
      at com.sun.xml.parser.Parser.content(Parser.java:1499)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
      at com.sun.xml.parser.Parser.content(Parser.java:1499)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
      at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
      at com.sun.xml.parser.Parser.parse(Parser.java:284)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
      at org.apache.struts.digester.Digester.parse(Digester.java:716)
      at org.apache.struts.action.ActionServlet.initMapping
      (ActionServlet.java:1249)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:438)
      at javax.servlet.GenericServlet.init(GenericServlet.java:232)
      at com.evermind.server.http.HttpApplication.w1(JAX)
      at com.evermind.server.http.HttpApplication.wj(JAX)
      at com.evermind.server.http.HttpApplication.wu(JAX)
      at com.evermind.server.http.HttpApplication.v4(JAX)
      at com.evermind.server.http.HttpApplication.<init>(JAX)
      at com.evermind.server.Application.ur(JAX)
      at com.evermind.server.http.el.ur(JAX)
      at com.evermind.server.http.ek.nm(JAX)
      at com.evermind.server.http.ef.s1(JAX)
      at com.evermind.server.http.ef.do(JAX)
      at com.evermind.util.f.run(JAX)
      Parse Error at line 65 column -1: Attribute "path" is not declared for
      element "forward
      org.xml.sax.SAXParseException: Attribute "path" is not declared for
      element "forward".
      at com.sun.xml.parser.Parser.error(Parser.java:2795)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1357)
      at com.sun.xml.parser.Parser.content(Parser.java:1499)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
      at com.sun.xml.parser.Parser.content(Parser.java:1499)
      at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
      at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
      at com.sun.xml.parser.Parser.parse(Parser.java:284)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
      at org.apache.struts.digester.Digester.parse(Digester.java:716)
      at org.apache.struts.action.ActionServlet.initMapping
      (ActionServlet.java:1249)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:438)
      at javax.servlet.GenericServlet.init(GenericServlet.java:232)
      at com.evermind.server.http.HttpApplication.w1(JAX)
      at com.evermind.server.http.HttpApplication.wj(JAX)
      at com.evermind.server.http.HttpApplication.wu(JAX)
      at com.evermind.server.http.HttpApplication.v4(JAX)
      at com.evermind.server.http.HttpApplication.<init>(JAX)
      at com.evermind.server.Application.ur(JAX)
      at com.evermind.server.http.el.ur(JAX)
      at com.evermind.server.http.ek.nm(JAX)
      at com.evermind.server.http.ef.s1(JAX)
      at com.evermind.server.http.ef.do(JAX)

      In Log file
      2/7/01 3:13 PM strutsExamples: 1.4.5 Started
      2/7/01 3:13 PM strutsExamples: org.apache.struts.action.ActionServlet:
      Processing a GET for /editRegistration
      2/7/01 3:13 PM strutsExamples: org.apache.struts.action.ActionServlet: No
      mapping available for path /editRegistration

      Attachments

        Activity

          People

            craigmcc Craig R. McClanahan
            sangz@hotmail.com sangz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: