本文介紹了將主題部署到救生網(wǎng)門戶時(shí)出錯(cuò)。找不到指定主題ID的主題。&;Quot;的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問(wèn)題描述
我已經(jīng)創(chuàng)建了示例主題,即根據(jù)Liavay教程創(chuàng)建的Custom.css,不知道為什么沒(méi)有部署我的主題,日志文件中有以下內(nèi)容:
“未找到指定主題ID的主題。返回默認(rèn)主題。”
并且在”管理->頁(yè)面->外觀”中的主題中沒(méi)有我的主題
推薦答案
當(dāng)您已將主題應(yīng)用到站點(diǎn)(社區(qū))但該主題當(dāng)前未部署時(shí),將顯示此警告消息。由于您最近對(duì)主題所做的更改,可能會(huì)發(fā)生這種情況。請(qǐng)嘗試恢復(fù)您所做的更改,并確保您的主題在部署時(shí)已成功注冊(cè)。
如果問(wèn)題仍然存在,請(qǐng)讓我們知道錯(cuò)誤日志語(yǔ)句或您對(duì)主題所做的確切更改。
我認(rèn)為您的主題正在部署到GlassFish,而不是注冊(cè)到Liferay。
您的部署過(guò)程中可能存在問(wèn)題,請(qǐng)?jiān)谀拈T戶-ext.properties文件中相應(yīng)地設(shè)置這些屬性
'
#
# 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后,您應(yīng)該會(huì)看到日志消息顯示
已成功注冊(cè)MyTheme的%1個(gè)主題。
這篇關(guān)于將主題部署到救生網(wǎng)門戶時(shí)出錯(cuò)。找不到指定主題ID的主題。&;Quot;的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,






