2 Replies Latest reply on Jun 28, 2006 6:06 AM by Martin Thorpe

    struts on Jboss server.log deploy error

    Martin Thorpe Newbie

      Hello, I am getting these errors reported by my server in the server.log file when I start the server:

      Parse Error at line 55 column 25: Element type "aciton" must be declared.
      org.xml.sax.SAXParseException: Element type "aciton" must be declared.
       at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)....
      


      2006-06-28 11:39:48,275 INFO [STDOUT] 11:39:48,275 ERROR [Digester] Parse Fatal Error at line 58 column 5: The element type "aciton" must be terminated by the matching end-tag "</aciton>".
      org.xml.sax.SAXParseException: The element type "aciton" must be terminated by the matching end-tag "</aciton>".
       at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)...
      


      Any idea what this might be, I do have the struts-config file correct with all actions closed:
       <form-beans>
       <form-bean name="employeeForm" type="coreservlets.form.EmployeeForm"/>
       <form-bean name="loginForm" type="coreservlets.form.LoginForm"/>
      
       </form-beans>
      
       <action-mappings>
      
       <action
       path="/employeeSetUp"
       name="employeeForm"
       type="coreservlets.action.EmployeeAction"
       scope="request"
       parameter="dispatch">
       <forward name="success" path="/forms/employeeForm.jsp"/>
       </action>
      
       <aciton path="/loginProcess"
       name="loginForm"
       type="coreservlets.action.LoginAction"
       scope="request"
       parameter="dispatch">
       <forward name="failure" path="/forms/loginForm.jsp"/>
       <forward name="success" path="/display/activeProfiles.jsp"/>
       </action>
      
       <action
       path="/employeeProcess"
       name="employeeForm"
       type="coreservlets.action.EmployeeAction"
       scope="request"
       parameter="dispatch">
       <forward name="failure" path="/forms/employeeForm.jsp"/>
       <forward name="success" path="/display/employees.jsp"/>
       </action>
      
      
       <action
       path="/activeProfiles"
       type="coreservlets.action.ProfileAction"
       parameter="dispatch">
       <forward name="success" path="/display/activeProfiles.jsp"/>
       </action>
      
      
       </action-mappings>
      


      The only thing I can think is in my action class I am not overriding the execute method just using my own:

       public ActionForward checkLogin(ActionMapping mapping,
       ActionForm form,
       HttpServletRequest request,
       HttpServletResponse response)
       throws Exception{
       dsn = (DataSource)servlet.getServletContext().getAttribute("security");
       logger.debug("checkLogin");
       LoginForm loginForm = (LoginForm)form;
      
       if (validateLogin(request, loginForm)) {
       Login login = new Login();
       BeanUtils.copyProperties(login, loginForm);
       //now run a query
       checkLogDbase(request, loginForm);
      
       return mapping.findForward(Constants.SUCCESS);
       } else {
       return mapping.findForward(Constants.FAILURE);
       }
      
       }
      



      Any help, advice or hints would be appreciated.

      Thanks for reading.

      cheers
      Martin