首页上一页 1 下一页尾页 3 条记录 1/1页
《Java Web编程宝典》第9章问题2
发表在JavaWeb图书答疑
2012-02-16
是否精华
是
否
版块置顶:
是
否
“9.6.2使用验证框架对数据校验”login.jsp页面不输入用户名点击“登录”,报错(好像是UserAction-validation.xml没有该语法错误,好像问题出在<!DOCTYPE validators ...>处。该文件我是从光盘复制过来的)。具体如下:
2012-2-15 20:30:46 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Document is invalid: no grammar found. at (null:2:12)
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
......
2012-2-15 20:30:46 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Caught exception while loading file xm/action/UserAction-validation.xml
Document is invalid: no grammar found. - file:///C:/eclipse/xm/action/UserAction-validation.xml:2:12
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
......
2012-2-15 20:30:46 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Document is invalid: no grammar found. at (null:2:12)
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
......
2012-2-15 20:30:46 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Caught exception while loading file xm/action/UserAction-validation.xml
Document is invalid: no grammar found. - file:///C:/eclipse/xm/action/UserAction-validation.xml:2:12
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
......