File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
struts1.2 _ struts_config.xml problem
Joined: Jan 28, 2008
Nov 14, 2008 03:04:00
i try to deploy my application to
... i am getting following error. please give me a idea
- Parse Error at line 48 column 17: The content of element type "struts-config" must match "(display-name?,description?, data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)" . org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(display-name?,description?,data- sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
Joined: Feb 19, 2008
Nov 14, 2008 03:22:00
The problem is with your struts-config.xm file , Its not valid..
Look for any extraneous character or unclosed element.
Please use any IDE XML parser to make sure that it adhere to the rules of dtd . I use NetBeans which allows me to parse my xml file for checking its well formedness & validness against dtd ..
Or paste your struts-config.xml file..
[Freelance Web Designer]
[and "Rohan" is part of my surname]
Joined: Oct 29, 2008
Nov 14, 2008 03:23:00
The order of the struts-config elements is important. So, please check your struts-config content against its DTD. Also, provide your struts-config file so that we can suggest you better.
[ November 14, 2008: Message edited by: Mourouganandame Arunachalam ]
Open Source leads to Open Mind
I agree. Here's the link:
subject: struts1.2 _ struts_config.xml problem
Exception in when starting the server?
struts1 application: error in struts-config.xml
Struts war deploy problem
controller tags in RequestProcessor's class
can we change the order of appearance of the elements in struts-config.xml ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015