簡體   English   中英

在jboss 6.1.0上錯誤部署struts

[英]error deploy struts on jboss 6.1.0

當我在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]

任何幫助,將不勝感激。

如果您仔細看看異常

org.xml.sax.SAXException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

當文檔引用損壞,丟失或無法訪問的DTD時,會發生此類異常。

首先,我希望您確認應用程序引用的任何DTD確實在線且可用。

如果您的應用程序通過從Internet讀取DTD來驗證文檔,則JBoss將需要Internet訪問。 還要確保您的代理設置正確無誤,因為它們應該允許通過JBOSS訪問外部DTD文檔。 如果使用代理,請添加-Dhttp.proxyHost=yourproxy

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM