1

我根据liferay教程创建了示例主题,即custom.css,不知道为什么我的主题没有部署,在日志文件中是下一个内容:“找不到指定主题id的主题。返回默认主题。” 在“管理->页面->外观”的主题中没有我的主题

4

2 回答 2

2

当您已将主题应用到站点(社区)但该主题当前未部署时,将显示此警告消息。这可能是由于您最近对主题所做的更改而发生的。请尝试恢复您所做的更改,并确保您的主题在部署时成功注册。

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


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

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

'
#
# 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 后,您应该会看到日志消息说

1 mytheme 的主题注册成功。

于 2012-07-30T18:36:48.537 回答
0

如果您正在使用 DEV/QA 环境,请更新 portal-ext.properties 文件:

包含并覆盖=portal-developer.properties

如果这是在 Staging/Production 上,只需在部署更新版本之前尝试从服务器上的YourThemeName/目录中删除/css文件夹。

于 2012-11-27T13:04:35.117 回答