2012-10-18 98 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