When I deploy every my project's war file built using struts-1 on JBOSS 6.1.0, I always get the following error
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]
Any help would be appreciated.
If you take a closer look at the exception
org.xml.sax.SAXException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
This type of exception occurs when a corrupt, missing or inaccessible DTD is referred to by your document.
First I would like you to verify that any DTD referred to by your application is actually online and available.
If your application validates a document by reading the DTD from the internet, JBoss will need internet access. Also make sure that your proxy settings are correct as they should be to allow access to outside DTD documents via JBOSS. Add -Dhttp.proxyHost=yourproxy
if you're using a proxy.