0

I have liferay-look-and-feel.xml file:

<?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>

I use maven to build my project and build success

But when I open localhost in Eclipse I see:

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

What is wrong?

witek010
  • 359
  • 3
  • 9
  • 15
  • If redeployment doesn't work then change the theme `id` to `id="sample"` or `id="sampletheme"` and then redeploy and check. Thanks – Prakash K Feb 19 '13 at 12:18

2 Answers2

3

Just remove the property antiJarLocking and set antiResourceLocking to false in Liferay-6.1.10/tomcat-7.0.27/webapps/sample_WAR_sampletheme/META-INF/context.xml. Read more here.

Mustapha Aoussar
  • 5,833
  • 15
  • 62
  • 107
  • 1
    This is to only possible solution that will be effective. All of the other once are just trying to lay the software but are not working. I did it in this way and for now I did not have any problem :) – JohnRambo Jul 19 '13 at 11:25
0

It is a problem of antiResourceLocking in tomcat 7.

Please check out the blog: No theme found for specified theme id … Returning the default theme

Prakash K
  • 11,669
  • 6
  • 51
  • 109
Adel
  • 151
  • 3