Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes SAX parser exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "SAX parser exception" Watch "SAX parser exception" New topic

SAX parser exception

kiran raj

Joined: Nov 14, 2005
Posts: 2
when my server starts, the following exception is encountered.plz help

[11/14/05 16:07:14:725 IST] 4fa324d4 Digester E org.apache.commons.digester.Digester Parse Error at line 9130 column 20: The content of element type "action-mappings" must match "(action)*".

[11/14/05 16:07:14:741 IST] 4fa324d4 Digester E org.apache.commons.digester.Digester TRAS0014I: The following exception was logged org.xml.sax.SAXParseException: The content of element type "action-mappings" must match "(action)*".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(
at org.apache.xerces.util.ErrorHandlerWrapper.error(
at org.apache.xerces.impl.XMLErrorReporter.reportError(

Vasudhaiv Naresh
Ranch Hand

Joined: May 13, 2005
Posts: 57
Hi Kiran!
It seems that your struts-config.xml file does not follow the DTD.
According to the DTD for struts configuration:
The "action-mappings" tag must have an "action" sub-tag.
According to the error posted by you, it seems that there's something wrong in the configuration file, it would be better if you post your struts-config file.
kiran raj

Joined: Nov 14, 2005
Posts: 2
Hi Naresh,
thanks for the response. My struts config is too big to copy paste here. Its more than 10000 lines. Is there any obvious mistake that I made in that?
I closed the form-bean tags, action-mapping tags, action tags.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: SAX parser exception
Similar Threads
Element type "plug-in" must be declared.
TRAS0014I: Error
Struts 2: error on adding <global-exception-mappings> tag to struts.xml
Getting Parse Error