我已经根据liferay教程创建了示例主题,即custom.css,并且不知道为什么我的主题未部署,在日志文件中是下一个内容: “找不到指定主题ID的主题。默认主题“。 而在“管理 - >页面 - >外观和感觉”中的主题中,没有我的主题将主题部署到liferay门户时发生错误。 “找不到指定主题ID的主题。”
1
A
回答
2
当您已经将主题应用于网站(社区)时,将显示此警告消息,但现在该主题目前未部署。这可能是由于最近对主题所做的更改而发生的。请尝试恢复您所做的更改,并确保在部署时您的主题已成功注册。
如果问题仍然存在,请告诉我们错误日志语句或您对主题做了哪些确切的更改。
我认为你的主题已经部署到玻璃鱼,但没有注册到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注册成功。
0
如果您正在使用DEV/QA环境中工作,请更新portal-ext.properties文件:
包括-和倍率= portal-developer.properties
如果是在分期/正在尝试删除/css文件夹中的YourThemeName/服务器上的目录在部署更新的版本之前。
相关问题
- 1. Liferay主题部署
- 2. 部署Liferay 6.1主题
- 3. Liferay 7主题热部署
- 4. 将RDD发送到卡夫卡时发生PYspark错误主题
- 5. 在WebLogic Server上部署Liferay主题
- 6. RoR找不到没有ID的主题
- 7. Liferay - 在主题
- 8. Liferay主题 - html5
- 9. Liferay主题+ maven
- 10. WebSphere Portal 6.1.5主题门户逻辑:findUrlInTheme,找到主题外的资源url
- 11. Liferay的主题发展
- 12. 购买主题到自定义主题?
- 13. JMSAppender - 找不到主题
- 14. 找不到主题CSS
- 15. EpicEditor:主题找不到
- 16. Liferay 6.1:自定义主题不是从“经典”主题继承
- 17. Liferay 6.1 Zenlike主题
- 18. CSS to Liferay主题
- 19. 将消息发布到WSO2中的主题和子主题MS
- 20. 发生错误时发生错误的云流,移动到拒绝主题(rabbitmq)
- 21. Wordpress主题git部署到Windows Azure
- 22. Liferay 7主题生成器:设置父主题(baseTheme)
- 23. Liferay主题不会启用?
- 24. Liferay当前主题错误页面
- 25. 指定主题在
- 26. Haxe - 未找到主题:主要
- 27. 如何将一个主题部署到我的Liferay门户中的所有站点?
- 28. HornetQ JMS主题到主题桥
- 29. 未能找到生成器主题
- 30. Liferay主题从5.2升级到6.1
我只是在_diffs/custom.css中更改样式来检查更改并且它包含“body {display:none;}”,并且它不会更改。 – test1604 2012-07-31 03:45:42
您的更改可能不是您面临的问题的原因。 你需要检查的几件事: 1. custom.css应该在_diffs/css/custom.css中,但是你在说_diffs/custom.css。你能重新检查一下吗? 2. custom.css已添加到main.css中 3.请重新启动服务器并删除浏览器chache。这是为了确保您清除了缓存。 – Sharana 2012-07-31 04:09:49
我很抱歉,我写错了,其实它在_diffs/css/custom.css中 – test1604 2012-07-31 04:15:56