Found the problem. <action-mappings> was opened and closed many times in the
document. Funny thing is it was working fine on NT. What is buggy here on
NT? My web server's XML parser?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 9:18 AM
To: [EMAIL PROTECTED]
Subject: Parsing error


Hi,
        I'm getting the following error when I restart my web server. I'm
developing on an NT machine and then deploying the code onto a unix server.
Things work fine on my machine, but I start getting this error as soon as I
deploy my code and do a server restart. Is it a problem with the file format
or do I have an incorrect version of the DTD?

Thanks,
Gaurav

Parse Error at line 1041 column -1: Element "struts-config" allows no
further input; "action-mappings" is not allowed.
org.xml.sax.SAXParseException: Element "struts-config" allows no further
input; "action-mappings" is not allowed.
        at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
        at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:345)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
        at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
        at org.apache.struts.digester.Digester.parse(Digester.java:755)
        at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
        at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java:315)
        at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java:181)
        at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to