2013-07-31 4 views
0

WAR 파일이 있습니다.WAR 파일을 liferay에 배포 할 수 없습니다.

오류없이 tomcat7에 배포 할 수 있습니다. 바람둥이와 번들을 Liferay에 배포하려고 할 때 그러나이 오류가 occures :

11:04:37,739 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:210] com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.Docume 
ntException: 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 declaratio 
n must be a quoted string. 
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. 
     at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:201) 
     at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:84) 
     at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:193) 
     at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:235) 
     at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54) 
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. 
     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:399) 
     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:378) 
     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:409) 
     at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:155) 
     at com.liferay.portal.tools.WebXMLBuilder.organizeWebXML(WebXMLBuilder.java:60) 
     at com.liferay.portal.tools.deploy.BaseDeployer.updateWebXml(BaseDeployer.java:2078) 
     at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:576) 
     at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:957) 
     at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:889) 
     at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:198) 

이 압축 해제 WAR 아카이브 루트 디렉토리에 folowing 명령을 실행 : $의 그렙 버전 = [^ \ "] -r 는 우리가를 제공합니다 folowing 결과 :

WEB-INF/i3-label.properties:file.reversion=Version History 
WEB-INF/classes/web/zssapp/labels/i3-label.properties:file.reversion=Version History 
WEB-INF/classes/web/zssapp/labels/i3-label_zh_TW.properties:file.reversion=版本歷史 
WEB-INF/i3-label_zh_TW.properties:file.reversion=版本歷史 
WEB-INF/liferay-plugin-package.properties:module-incremental-version=1 

아이디어

+0

내부의 모든 .xml 파일을 살펴보고 첫 번째 줄을 확인 하시겠습니까? 이제 속성 파일을 찾았습니다. 그들은 전혀 XML이 아닙니다. – Kayaman

답변

0

과정을 배포 LR 사용하는 모든 XML 파일을 열려고 (예 : portlet.xml의,을 Liferay-portlet.xml의 등)와 첫 번째 행을 확인?. 어떤 오류가 있습니다 (따옴표, doble-quotes, 속성 또는 다른 것 ...).

새로운 LR 프로젝트 (또는 LR SVN 저장소의 몇 가지 예)와 비교해보십시오.

관련 문제