Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Theme migration from 6.0 to 6.1? Theme deployment fail Aaron Paxson 14 de Janeiro de 2012 12:51
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen 15 de Janeiro de 2012 00:46
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Aaron Paxson 15 de Janeiro de 2012 07:44
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen 15 de Janeiro de 2012 11:46
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen 15 de Janeiro de 2012 11:56
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Aaron Paxson 15 de Janeiro de 2012 13:28
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Maarten van Heiningen 16 de Janeiro de 2012 01:25
RE: Theme migration from 6.0 to 6.1? Theme deployment fail MICHAIL MOUDATSOS 23 de Janeiro de 2012 07:59
RE: Theme migration from 6.0 to 6.1? Theme deployment fail David H Nebinger 23 de Janeiro de 2012 10:07
RE: Theme migration from 6.0 to 6.1? Theme deployment fail MICHAIL MOUDATSOS 24 de Janeiro de 2012 00:06
RE: Theme migration from 6.0 to 6.1? Theme deployment fail David H Nebinger 24 de Janeiro de 2012 06:58
RE: Theme migration from 6.0 to 6.1? Theme deployment fail MICHAIL MOUDATSOS 25 de Janeiro de 2012 06:57
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Rick Osborn 21 de Março de 2012 14:12
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Brian Scott Schupbach 2 de Maio de 2012 06:41
RE: Theme migration from 6.0 to 6.1? Theme deployment fail Vanita Chawla 22 de Março de 2013 05:46
Aaron Paxson
Theme migration from 6.0 to 6.1? Theme deployment fail
14 de Janeiro de 2012 12:51
Resposta

Aaron Paxson

Ranking: Regular Member

Mensagens: 103

Data de entrada: 27 de Julho de 2010

Mensagens recentes

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
15 de Janeiro de 2012 00:46
Resposta

Maarten van Heiningen

Ranking: Regular Member

Mensagens: 172

Data de entrada: 5 de Fevereiro de 2009

Mensagens recentes

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
15 de Janeiro de 2012 07:44
Resposta

Aaron Paxson

Ranking: Regular Member

Mensagens: 103

Data de entrada: 27 de Julho de 2010

Mensagens recentes

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
15 de Janeiro de 2012 11:46
Resposta

Maarten van Heiningen

Ranking: Regular Member

Mensagens: 172

Data de entrada: 5 de Fevereiro de 2009

Mensagens recentes

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
15 de Janeiro de 2012 11:56
Resposta

Maarten van Heiningen

Ranking: Regular Member

Mensagens: 172

Data de entrada: 5 de Fevereiro de 2009

Mensagens recentes

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
15 de Janeiro de 2012 13:28
Resposta

Aaron Paxson

Ranking: Regular Member

Mensagens: 103

Data de entrada: 27 de Julho de 2010

Mensagens recentes

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
16 de Janeiro de 2012 01:25
Resposta

Maarten van Heiningen

Ranking: Regular Member

Mensagens: 172

Data de entrada: 5 de Fevereiro de 2009

Mensagens recentes

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
23 de Janeiro de 2012 07:59
Resposta

MICHAIL MOUDATSOS

Ranking: Regular Member

Mensagens: 110

Data de entrada: 4 de Outubro de 2011

Mensagens recentes

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
23 de Janeiro de 2012 10:07
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 7075

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

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
24 de Janeiro de 2012 00:06
Resposta

MICHAIL MOUDATSOS

Ranking: Regular Member

Mensagens: 110

Data de entrada: 4 de Outubro de 2011

Mensagens recentes

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
24 de Janeiro de 2012 06:58
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 7075

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

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
25 de Janeiro de 2012 06:57
Resposta

MICHAIL MOUDATSOS

Ranking: Regular Member

Mensagens: 110

Data de entrada: 4 de Outubro de 2011

Mensagens recentes

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
21 de Março de 2012 14:12
Resposta

Rick Osborn

Ranking: New Member

Mensagens: 14

Data de entrada: 24 de Maio de 2011

Mensagens recentes

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
2 de Maio de 2012 06:41
Resposta

Brian Scott Schupbach

Ranking: Expert

Mensagens: 331

Data de entrada: 23 de Outubro de 2008

Mensagens recentes

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
22 de Março de 2013 05:46
Resposta

Vanita Chawla

Ranking: New Member

Mensagens: 18

Data de entrada: 25 de Março de 2010

Mensagens recentes

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.