This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
deployment errors
Martin Thorpe
Ranch Hand
Joined: May 25, 2004
Posts: 45
posted
Jun 28, 2006 03:49:00
0
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
Martin Thorpe
Ranch Hand
Joined: May 25, 2004
Posts: 45
posted
Jun 28, 2006 04:02:00
0
I am a total idiot, it was just a typo but has taken me all morning to realise this :-(
<aciton path="/loginProcess" name="loginForm" type="coreservlets.action.LoginAction"
should read action NOT ACITON
cheers anyway.
Martin
Uma Mahi
Ranch Hand
Joined: Jan 11, 2006
Posts: 34
posted
Jun 29, 2006 09:05:00
0
realised
Umaa Mahi<br />--SCJP1.4
I agree. Here's the link:
http://aspose.com/file-tools
subject: deployment errors
Similar Threads
Data Source
Cannot load a validator resource
Struts validation problem..
Getting org.xml.sax.SAXParseException
Runing an example struts application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter