Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on@H_502_3@ line 1 of document : The value following “version” in the XML@H_502_3@ declaration must be a quoted string. Nested exception: The value@H_502_3@ following “version” in the XML declaration must be a quoted string.
up:我不知道哪个文件出现此错误.@H_502_3@完整日志
I don’t know which file giving this error…@H_502_3@ All log@H_502_3@ [#|2012-08-09T15:12:20.322+0400|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-3;|15:12:20,321 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:210] com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.@H_502_3@ com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.@H_502_3@ at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:201)@H_502_3@ at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:84)@H_502_3@ at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:193)@H_502_3@ at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:235)@H_502_3@ at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)@H_502_3@ Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.@H_502_3@ at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:399)@H_502_3@ at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:378)@H_502_3@ at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:409)@H_502_3@ at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:155)@H_502_3@ at com.liferay.portal.tools.WebXMLBuilder.organizeWebXML(WebXMLBuilder.java:60)@H_502_3@ at com.liferay.portal.tools.deploy.BaseDeployer.updateWebXml(BaseDeployer.java:2078)@H_502_3@ at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:576)@H_502_3@ at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:957)@H_502_3@ at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:889)@H_502_3@ at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:198)@H_502_3@ … 4 more@H_502_3@ Caused by: org.dom4j.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.@H_502_3@ at org.dom4j.io.SAXReader.read(SAXReader.java:482)@H_502_3@ at org.dom4j.io.SAXReader.read(SAXReader.java:365)@H_502_3@ at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:396)@H_502_3@ … 13 more@H_502_3@ |#]
就我而言,Liferay改变了web.xml的第一部分
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
喜欢的东西
<?xml version=<filters>[other stuff]</filters> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
所以这是一个修改过的第一行导致了这个问题.我使用<! - - >注释掉了一些XML并删除这些部分解决了问题.但这是一个错误恕我直言.