Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Theme migration from 6.0 to 6.1? Theme deployment fail Aaron Paxson January 14, 2012 12:51 PM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen January 15, 2012 12:46 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Aaron Paxson January 15, 2012 7:44 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen January 15, 2012 11:46 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen January 15, 2012 11:56 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Aaron Paxson January 15, 2012 1:28 PM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen January 16, 2012 1:25 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail MICHAIL MOUDATSOS January 23, 2012 7:59 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail David H Nebinger January 23, 2012 10:07 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail MICHAIL MOUDATSOS January 24, 2012 12:06 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail David H Nebinger January 24, 2012 6:58 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail MICHAIL MOUDATSOS January 25, 2012 6:57 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Rick Osborn March 21, 2012 2:12 PM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Brian Scott Schupbach May 2, 2012 6:41 AM
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Vanita Chawla March 22, 2013 5:46 AM
Aaron Paxson
Theme migration from 6.0 to 6.1? Theme deployment fail
January 14, 2012 12:51 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

I can't seem to find any docs on migrating custom 6.0 themes to 6.1. I upgraded my 6.0.6 installation to 6.1. When I add my theme, I get:

1
215:39:07,948 INFO  [PluginPackageUtil:1099] Reading plugin package for MyTeneo_Theme-theme
315:39:08,364 INFO  [ThemeHotDeployListener:172] Registering themes for MyTeneo_Theme-theme
415:39:08,369 ERROR [ThemeLocalServiceImpl:488] Themes in this WAR are not compatible with Liferay Portal Community Edition / 6.1.0
515:39:08,370 INFO  [ThemeHotDeployListener:105] 0 themes for MyTeneo_Theme-theme are available for use


Since this is a portal instance, I cannot access the site. It does an infinite redirection. I'm guessing because the theme isn't deployed, but I can't access it to change the theme.

My log file fills up with:

1
215:48:28,012 WARN  [ThemeLocalServiceImpl:149] No theme found for specified theme id MyTeneo_Theme_WAR_MyTeneo_Themetheme. Returning the default theme.
315:48:28,013 ERROR [ThemeLocalServiceImpl:173] No theme found for default theme id MyTeneo_Theme_WAR_MyTeneo_Themetheme. Returning a random theme.


Anyone know how I can migrate my theme, or tell Liferay that it's a 6.1 theme?

Thanks!
Maarten van Heiningen
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 15, 2012 12:46 AM
Answer

Maarten van Heiningen

Rank: Regular Member

Posts: 172

Join Date: February 5, 2009

Recent Posts

Hi Aaron,

In the WEB-INF foder of your theme there is a file "Liferay-look-and-feel.xml"

In the Liferay-look-and-feel.xml file you set some properties for the theme and also what server version it is ment to run on.

 1<?xml version="1.0"?>
 2<!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">
 3
 4<look-and-feel>
 5    <compatibility>
 6        <version>6.1.0+</version>
 7    </compatibility>
 8    <theme id="THEMEID" name="THEMENAME" />
 9</look-and-feel>


In here you see that it states to run on 6.1.0+ so on a 6.1 or higher server.

This should do the trick for you
Aaron Paxson
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 15, 2012 7:44 AM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

Maarten van Heiningen:


 1<?xml version="1.0"?>
 2<!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">
 3
 4<look-and-feel>
 5    <compatibility>
 6        <version>6.1.0+</version>
 7    </compatibility>
 8    <theme id="THEMEID" name="THEMENAME" />
 9</look-and-feel>




Thanks Maarten! This definitely let Liferay deploy my theme. But, now I'm getting some vm template errors. Do you know if 6.1 changed any Velocity stuff? It could have just been a bad upgrade. I rolled everything back to get my site running again, and will try again later.
Maarten van Heiningen
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 15, 2012 11:46 AM
Answer

Maarten van Heiningen

Rank: Regular Member

Posts: 172

Join Date: February 5, 2009

Recent Posts

Hi Aaron,

Let me know what errors there where in your VM files. There should not be any if the original ones where at least from a version 6.0.
If they where from a Liferay 5 then yes upgrading would be wise.

Best,
Maarten
Maarten van Heiningen
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 15, 2012 11:56 AM
Answer

Maarten van Heiningen

Rank: Regular Member

Posts: 172

Join Date: February 5, 2009

Recent Posts

Hi Aaron,

Sorry I see you are migrating from 6.0 to 6.1.

Let me know what error messages you got while running the theme on 6.1

best,
Maarten
Aaron Paxson
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 15, 2012 1:28 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

There are a couple of things. First, on my template:

1
2ERROR [error_jsp:423] javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'include' in class com.liferay.taglib.util.VelocityTaglib threw exception java.lang.NullPointerException at MyTeneo_Theme-theme_SERVLET_CONTEXT_/templates/portal_normal.vm[line 99, column 8]


Which equates to my last line: $theme.include($bottom_include)

I also get the following from my hook plugin:

1
2WARNING: Failed to process TLD with path [http://java.sun.com/portlet_2_0] and URI [/WEB-INF/tld/liferay-portlet.tld]
3java.net.MalformedURLException


Any suggestions? Because of this, I cannot load the portal in a browser.

Thanks!
Maarten van Heiningen
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 16, 2012 1:25 AM
Answer

Maarten van Heiningen

Rank: Regular Member

Posts: 172

Join Date: February 5, 2009

Recent Posts

Hi Aaron,

The "_SERVLET_CONTEXT_/templates/portal_normal.vm" error is known and there is a hack to solve this.

In your portal-ext.properties you can set the following:

1hot.deploy.listeners=\
2com.liferay.portal.deploy.hot.PluginPackageHotDeployListener,\
3com.liferay.portal.deploy.hot.HookHotDeployListener,\
4com.liferay.portal.deploy.hot.PortletHotDeployListener,\
5com.liferay.portal.deploy.hot.ThemeHotDeployListener,\
6com.liferay.portal.deploy.hot.ThemeLoaderHotDeployListener,\
7com.liferay.portal.deploy.hot.LayoutTemplateHotDeployListener,\
8com.liferay.portal.deploy.hot.MessagingHotDeployListener


This ensures that the theme is loaded before the layout and so the servlet context is registered.

Best,
Maarten
MICHAIL MOUDATSOS
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 23, 2012 7:59 AM
Answer

MICHAIL MOUDATSOS

Rank: Regular Member

Posts: 110

Join Date: October 4, 2011

Recent Posts

I migrated my theme project as follows. I ran create.bat giving the name and description of my theme in 6.0.6. then I added all the remaining files. I called ant deploy and got the following message on console:
 115:47:43,736 INFO  [AutoDeployDir:167] Processing ThemeView-theme-6.1.0.1.war
 215:47:43,775 INFO  [ThemeAutoDeployListener:44] Copying themes for C:\Liferay\liferay-portal-6.1.0-ce-ga1\deploy\ThemeView-theme-6.1.0.1.war
 3  Expanding: C:\Liferay\liferay-portal-6.1.0-ce-ga1\deploy\ThemeView-theme-6.1.0.1.war into C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\temp\20120123154743779
 4  Copying 1 file to C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\temp\20120123154743779\WEB-INF
 5  Copying 1 file to C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\temp\20120123154743779\WEB-INF\classes
 6  Copying 1 file to C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\temp\20120123154743779\WEB-INF\classes
 7  Copying 1 file to C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\temp\20120123154743779\WEB-INF
 8  Warning: css\.sass-cache\application.css modified in the future.
 9
10...
11
12  Warning: templates\portal_pop_up.vm modified in the future.
13  Warning: templates\portlet.vm modified in the future.
14  Copying 718 files to C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ThemeView-theme
15  Copying 1 file to C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ThemeView-theme
16  Deleting directory C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\temp\20120123154743779
1723 +β+-+? 2012 3:48:03 +-+- org.apache.catalina.startup.HostConfig deployDirectory
18INFO: Deploying web application directory C:\Liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ThemeView-theme
1915:48:03,206 INFO  [PluginPackageUtil:1099] Reading plugin package for ThemeView-theme
2015:48:03,284 INFO  [ThemeHotDeployListener:172] Registering themes for ThemeView-theme
2115:48:03,289 ERROR [ThemeLocalServiceImpl:488] Themes in this WAR are not compatible with Liferay Portal Community Edition / 6.1.0
2215:48:03,293 INFO  [ThemeHotDeployListener:105] 0 themes for ThemeView-theme are available for use
2315:48:03,985 INFO  [ThemeAutoDeployListener:50] Themes for C:\Liferay\liferay-portal-6.1.0-ce-ga1\deploy\ThemeView-theme-6.1.0.1.war copied successfully. Deployment will start in a few seconds.


I wonder why I got this message: Themes in this WAR are not compatible with Liferay Portal Community Edition / 6.1.0

What should we be aware of when we migrate our themes from 6.0.6 to 6.1? Should I make a different post?

Thank you in advance!
David H Nebinger
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 23, 2012 10:07 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7238

Join Date: September 1, 2006

Recent Posts

In your theme/docroot/WEB-INF/liferay-look-and-feel.xml file, what do you have listed in the <version> element?
MICHAIL MOUDATSOS
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 24, 2012 12:06 AM
Answer

MICHAIL MOUDATSOS

Rank: Regular Member

Posts: 110

Join Date: October 4, 2011

Recent Posts

1<version>6.0.5+</version>

Doesn't this mean 6.0.5 and above?
Does this concern only 6.0.x that are above 6.0.5 or any version?
David H Nebinger
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 24, 2012 6:58 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7238

Join Date: September 1, 2006

Recent Posts

It should mean that the theme is compatible with anything greater than 6.0.5, including 6.1...

You could try changing it to 6.1.0+ and see if that fixes your compatibility message...
MICHAIL MOUDATSOS
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
January 25, 2012 6:57 AM
Answer

MICHAIL MOUDATSOS

Rank: Regular Member

Posts: 110

Join Date: October 4, 2011

Recent Posts

yep, that was it! Thank you very much!
(However it is a bit rediculous, isn't it?)

Deployment finished normally. Then I got some other errors (complaints about a .vm file) which I later found that they where upgrade-related and as I have stated here they disappeared when I tried my upgrade with a portal-ext.properties file which contained the minimum required info (conection credentials and company info).

So, thanks again!
Rick Osborn
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
March 21, 2012 2:12 PM
Answer

Rick Osborn

Rank: New Member

Posts: 14

Join Date: May 24, 2011

Recent Posts

Aaron Paxson:
There are a couple of things. First, on my template:

1
2ERROR [error_jsp:423] javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'include' in class com.liferay.taglib.util.VelocityTaglib threw exception java.lang.NullPointerException at MyTeneo_Theme-theme_SERVLET_CONTEXT_/templates/portal_normal.vm[line 99, column 8]


Thanks!


I got this exact error. Here is how I fixed it.

1. Create a new theme in the 6.1 SDK.
2. Change the build.xml so it inherits from "classic" not "_styled".
3. Drop your "_diff" changes from your old theme into the new one.
4. Build and deploy.

Step #2 held me back and gave ne your error.
Brian Scott Schupbach
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
May 2, 2012 6:41 AM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

This is probably pretty rare but I was receiving the same error when someone had set all the pages to "hidden" in my site. The $include(bottom was throwing the error.
Vanita Chawla
RE: Theme migration from 6.0 to 6.1? Theme deployment fail
March 22, 2013 5:46 AM
Answer

Vanita Chawla

Rank: New Member

Posts: 19

Join Date: March 25, 2010

Recent Posts

This was very helpful. I ensure one of the pages on the site was not "hidden" and the error stopped. We were getting the error only as the omni admin user upon login and search. Thanks to the thread and Brian's post, we are able to resolve it.

Brian Scott Schupbach:
This is probably pretty rare but I was receiving the same error when someone had set all the pages to "hidden" in my site. The $include(bottom was throwing the error.