当我在JBOSS 6.1.0上部署使用struts-1构建的每个项目的war文件时,我总是会收到以下错误
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfs:///D:/javaKHANH/JavaKit_t.Khanh/jboss-6.1.0.Final/server/default/deploy/EJB3Struts.war state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///D:/javaKHANH/JavaKit_t.Khanh/jboss-6.1.0.Final/server/default/deploy/EJB3Struts.war
Caused by: org.xml.sax.SAXException: The markup declarations contained or pointed to by the document type declaration must be well-formed. @ http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd[1,3]
DEPLOYMENTS IN ERROR:
Deployment "vfs:///D:/javaKHANH/JavaKit_t.Khanh/jboss-6.1.0.Final/server/default/deploy/EJB3Struts.war" is in error due to the following reason(s):
org.xml.sax.SAXException: The markup declarations contained or pointed to by the document type declaration must be well-formed. @ http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd[1,3]
任何帮助都将不胜感激。
答案 0 :(得分:0)
如果你仔细看看异常
org.xml.sax.SAXException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
当您的文档引用损坏,丢失或无法访问的DTD时,会发生此类异常。
首先,我希望您验证您的应用程序引用的任何DTD实际上是否在线且可用。
如果您的应用程序通过从互联网上读取DTD来验证文档,JBoss将需要访问Internet。还要确保您的代理设置正确,因为它们应允许通过JBOSS访问外部DTD文档。如果您正在使用代理,请添加-Dhttp.proxyHost=yourproxy
。