掲示板

Liferay 6.2 Theme problems

9年前 に Rob Silver によって更新されました。

Liferay 6.2 Theme problems

Junior Member 投稿: 47 参加年月日: 13/06/20 最新の投稿
When I went to deploy my 6.1.x ready theme I found a problem in the console:
Are 6.1.x themes incompatible for Liferay 6.2 GA2 bundled servers?
If so are there any conversion scripts or programs out there? I am looking at packpub.com's 6.2 User Interface book to seek more answers I hope they exist in there.
Also a tip for people unfamiar with Themes in Liferay IDE Eclipse plugin It seems that dragging and dropping to the Liferay configured Server Runtime configuration is the only way to get deployment to happen.

When I tried Liferay - SDK deploy but got the errors:
Error running SDK command deploy
java.lang.NullPointerException

Here is my deployment console output: after dragging and dropping the theme project to the server
Dec 12, 2014 5:18:48 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\liferay_training\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\tm1-theme
17:18:53,140 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing tm1-theme.xml
17:18:53,149 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ThemeExplodedTomcatListener:48] Modifying themes for C:\liferay_training\liferay-portal-6.2-ce-ga2\deploy\tm1-theme.xml
Copying 1 file to C:\liferay_training\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\tm1-theme\WEB-INF\classes
Copying 1 file to C:\liferay_training\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\tm1-theme\WEB-INF\classes
Copying 1 file to C:\liferay_training\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\tm1-theme\WEB-INF
17:18:53,375 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2383] Modifying Servlet 2.4 C:\liferay_training\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\tm1-theme\WEB-INF\web.xml
17:18:53,375 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ThemeExplodedTomcatListener:54] Themes for C:\liferay_training\liferay-portal-6.2-ce-ga2\deploy\tm1-theme.xml modified successfully
17:18:53,379 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:49] Copying file C:\liferay_training\liferay-portal-6.2-ce-ga2\deploy\tm1-theme.xml to C:\liferay_training\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\conf\Catalina\localhost
Dec 12, 2014 5:18:58 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/tm1-theme]
Dec 12, 2014 5:18:58 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/tm1-theme] has started
17:18:59,428 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployEvent:130] Plugin tm1-theme requires marketplace-portlet
17:18:59,429 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployImpl:198] Deploying tm1-theme from queue
17:18:59,429 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1016] Reading plugin package for tm1-theme
Dec 12, 2014 5:18:59 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
17:18:59,548 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ThemeHotDeployListener:97] Registering themes for tm1-theme
17:18:59,573 ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ThemeLocalServiceImpl:488] Themes in this WAR are not compatible with Liferay Portal Community Edition / 6.2.1
17:18:59,574 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ThemeHotDeployListener:115] 0 themes for tm1-theme are available for use
Dec 12, 2014 5:18:59 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/tm1-theme] is completed
thumbnail
1年前 に Tanweer Ahmed . によって更新されました。

RE: Liferay 6.2 Theme problems

Expert 投稿: 322 参加年月日: 10/03/11 最新の投稿
Hi Rob,

AFAIK there are no migration scripts for updating the Theme from one version to another.

But as a quick fix, you can try changing the version inside of liferay-plugin-package.properties file.

For my migration of Portlets from LR6 to LR6.2, I had to manually copy the Portlets inside of LR6.2 Plugins SDK and modify the DTD definitions and other necessary changes.

Update scripts will only be available for migrating the database from one version to another.

Regards,
Tanweer.
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Liferay 6.2 Theme problems

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
6.1 themes are not compatible with 6.2

There is a tool to help with the migration: https://github.com/liferay/liferay-aui-upgrade-tool