将主题部署到liferay门户时出错。 “找不到指定主题ID的主题”。 [英] Error occures when deploying theme to liferay portal. "No theme found for specified theme id ."

查看:361
本文介绍了将主题部署到liferay门户时出错。 “找不到指定主题ID的主题”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了示例主题,即custom.css根据liferay教程,不知道为什么我的主题未部署,在日志文件中是下一个内容:
找不到指定的主题主题ID。返回默认主题。
在Manage-> Page-> Look and Feel中的主题中没有我的主题

I've create sample theme, i.e. custom.css according to liferay tutorial, and don't know why my theme is not deployed, in the log file is the next content: "No theme found for specified theme id . Returning the default theme." And in the themes in "Manage->Page->Look and Feel" there is no my theme

推荐答案

当您已将主题应用于网站(社区)时,将显示此警告消息,但该主题现在已取消部署。由于您对主题的最新更改,可能会发生这种情况。请尝试还原您所做的更改,并确保您的主题在部署时已成功注册。

This warning messages will be displayed when you have already applied a theme to the site(Community) but That theme is now undeployed currently. This can happen due to the recent changes that you have made to the theme. please try reverting the changes that you have made, and make sure that your theme get registered successfully when you deployed.

如果问题仍然存在,请让我们知道错误日志语句或您对主题所做的确切更改。

if the problem still persists, please let us know error log statements or What are the exact changes that you have done to the theme.

我认为您的主题正在部署到glassfish,但未注册到Liferay。

I Think your theme is getting deployed to glassfish, but not getting registered to Liferay.

可能是您的部署过程中有问题,您可以在portal-ext.properties文件中相应地设置这些属性

May be there is a problem in your deployment process, can you please set these properties accordingly in your portal-ext.properties file

'
#
# Set this to true to enable auto deploy of layout templates, portlets, and
# themes.
#
auto.deploy.enabled=true

#
# Set the directory to scan for layout templates, portlets, and themes to
# auto deploy.
#
auto.deploy.deploy.dir=${liferay.home}/deploy

#
# Set the directory where auto deployed WARs are copied to. The application
# server or servlet container must know to listen on that directory.
# Different containers have different hot deploy paths. For example, Tomcat
# listens on "${catalina.base}/webapps" whereas JBoss listens on
# "${jboss.server.home.dir}/deploy". Set a blank directory to automatically
# use the application server specific directory.
#
auto.deploy.dest.dir=
auto.deploy.default.dest.dir=../webapps
auto.deploy.geronimo.dest.dir=${org.apache.geronimo.home.dir}/deploy
auto.deploy.glassfish.dest.dir=${com.sun.aas.instanceRoot}/autodeploy
auto.deploy.jboss.dest.dir=${jboss.server.home.dir}/deploy
auto.deploy.jetty.dest.dir=${jetty.home}/webapps
auto.deploy.jonas.dest.dir=${jonas.base}/deploy
auto.deploy.resin.dest.dir=${resin.home}/webapps
auto.deploy.tomcat.dest.dir=${catalina.base}/webapps
auto.deploy.weblogic.dest.dir=${env.DOMAIN_HOME}/autodeploy

'

配置此特定的glassfish后,您应该看到日志消息说

After configuring this specific to glassfish, you should see log message saying

1主题为mytheme注册成功。

1 Themes for mytheme registered successfully.

这篇关于将主题部署到liferay门户时出错。 “找不到指定主题ID的主题”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆