2012-10-18 100 views
0

我的Liferay的外观和-feel.xml文件:Liferay的6.1主题 - 外观和感觉

<?xml version="1.0"?> 
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.1.0//EN" 
"http://www.liferay.com/dtd/liferay-look-and-feel_6_1_0.dtd"> 

<look-and-feel> 
    <compatibility> 
     <version>6.1.10+</version> 
    </compatibility> 
    <theme id="sample-theme" name="Sample Theme"> 
     <settings> 
     <setting key="portlet-setup-show-borders-default" value="false" /> 
     </settings> 
    </theme> 
</look-and-feel> 

我使用Maven来构建我的项目,建设成功

但是,当我在打开本地主机Eclipse我看到:

[ThemeLocalServiceImpl:149] No theme found for specified theme id sample_WAR_sampletheme. Returning the default theme. 

什么是错?

+1

重新部署主题 – Mark

+0

如果重新部署不起作用,则将主题'id'更改为'id =“sample”'或'id =“sampletheme”',然后重新部署并检查。谢谢 –

回答

3

只需卸下财产antiJarLocking的Liferay-6.1.10/Tomcat的7.0设置antiResourceLocking为假.27/webapps/sample_WAR_sampletheme/META-INF/context.xmlRead more here

+1

这是唯一可行的解​​决方案,将是有效的。所有其他人都只是试图铺设软件,但没有工作。我这样做了,现在我没有任何问题:) – JohnRambo