在 Jboss 中部署 EAR 时,应用程序无法启动并抛出以下堆栈跟踪:
16:33:31,804 WARN [EntityResolver] Entity is not registered, publicId=-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN systemId=http://java.sun.com/j2ee/dtds/application-client_1_2.dtd
16:33:32,112 ERROR [XmlFileLoader] The markup declarations contained or pointed to by the document type declaration must be well-formed.:2:1
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
at org.jboss.deployment.ClientDeployer.start(ClientDeployer.java:122)
~~~ snip ~~~
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
这可能与我的应用程序使用的库/jar 有关吗?