This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "SAX parser exception" Watch "SAX parser exception" New topic
Author

SAX parser exception

kiran raj
Greenhorn

Joined: Nov 14, 2005
Posts: 2
HI,
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(ErrorHandlerWrapper.java:232)
at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)


ANY CLUE?
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.
Regards,
Naresh
kiran raj
Greenhorn

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SAX parser exception
 
Similar Threads
struts1.2.5
Getting Parse Error
Struts 2: error on adding <global-exception-mappings> tag to struts.xml
TRAS0014I: Error
Element type "plug-in" must be declared.