尝试在Liferay 6.2.1CE& EE中设置主题设置。我的救生筏看起来像:
<?xml version="1.0"?>
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.0.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_0_0.dtd">
<look-and-feel>
<compatibility>
<version>6.2.0+</version>
</compatibility>
<theme id="wwhs-login-theme" name="wwhs-login-theme" >
<settings>
<setting type="select" configurable="true"
key="choose-login-theme-wwhs"
options="client-operations-login-theme,client-experience-login-theme"
value="client-experience-login-theme" ></setting>
</settings>
</theme>
</look-and-feel>当我试图构建它时,得到以下错误:
07:48:57,413错误localhost-startStop-2文档第10行中的com.liferay.portal.kernel.xml.DocumentException:错误:必须为元素类型“设置”声明属性“可配置”。嵌套异常:必须为元素类型“设置”声明属性“可配置”。
我遗漏了什么?
发布于 2014-09-24 14:41:06
找到答案了。此错误是由于错误的DOCTYPE配置造成的。
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.0.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_0_0.dtd">需要更改为
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.2.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_2_0.dtd">6.0.0DTD文件没有可配置的(和附加的)属性,该属性已在以后的版本中添加。
参考文献:boards/message/16388636
https://stackoverflow.com/questions/26019784
复制相似问题