找不到指定主题ID的主题。返回默认主题

时间:2013-09-30 13:52:19

标签: templates themes liferay liferay-6 liferay-theme

通过liferay-plugins-sdk-6.1.1在主题文件夹中我为我的liferay门户创建了一个主题6.1.1 CE-GA2。

我的liferay-plugin-package:

    name=internal_portal
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.1.1

My liferay-look-and-feel :

    <?xml version="1.0"?>
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.1.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_1_0.dtd">

<look-and-feel>
<compatibility>
<version>6.1.1</version>
</compatibility>
<theme id="internal_portal" name="internal_portal" />
</look-and-feel>

但在启动我的liferay门户网站之后,在使用我的门户网站后,我发现找不到指定主题ID的主题。在我的liferay门户控制台中返回默认主题。

如何解决这个问题??????????

5 个答案:

答案 0 :(得分:3)

尝试在portal-ext.properties中设置此属性并重新启动服务器:

#
# Set the default theme id for regular themes.
#
default.regular.theme.id=internal_portal

但是,我建议您从

部分的控制面板中检查主题的正确ID
  

插件配置 - &gt; 主题插件

点击你的主题,你会得到这样的东西:

enter image description here

答案 1 :(得分:2)

Liferay 6.2上“找不到指定主题ID的主题”错误的另一个非常令人困惑的原因是,liferay-look-and-feel.xml中主题的id以“-theme”结尾。当您尝试编辑其内容时,这将导致使用CKEditor的portlet请求错误的主题ID,例如如果您尝试编辑Wiki条目或Web内容portlet的内容。例如,如果liferay-look-and-feel.xml中的id如下所示:

<theme id="example-theme" name="Example Theme" />

编辑Web内容portlet将使portlet请求主题ID example_WAR_exampletheme。但是,数据库中layout和layoutset表中引用的主题的实际ID是exampletheme_WAR_exampletheme。由于没有ID为example_WAR_exampletheme的主题,因此将返回默认主题。这导致SASS编译错误,因为Compass查找的文件位置错误,这将导致CSS文件出现404错误。因此,如果您看到“找不到指定主题ID的主题”,然后在日志中出现SASS编译错误,并且您在CSS文件上获得404,并确保您的结尾没有“-theme”在liferay-look-and-feel.xml中的id。

答案 2 :(得分:0)

你可以在构建主题的战争时检查控制台吗?那里有什么错误吗? 当您的主题部署在tomcat中检查控制台时,应该有一些错误/问题导致上述错误消息。

我希望您已经通过以下链接了解了主题开发概述。 因此,在您的主题中,您将创建具有自定义css,图像,js,模板的_diffs文件夹。

https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-liferay-them-7

答案 3 :(得分:0)

更改portal-XXX.properties以强制使用主题可以是一种解决方案。首先,使用UI检查门户配置设置。您可能已从Liferay中删除了一个主题,但仍在门户网站中使用。

检查此配置:

  

配置 - &gt; 门户网站设置

     

在横向菜单中,检查门户中的显示设置

     

在“显示设置”中,您可以选择默认主题默认控制面板主题

检查最后两个选项。也许指向一个不存在的主题。将其更改为Classic

答案 4 :(得分:0)

我也遇到了类似的错误,这些问题是

WARN  [http-bio-3000-exec-69][ThemeLocalServiceImpl:156] No theme found for specified theme id My_Theme_WAR_MyThemetheme. Returning the default theme.
Sass::SyntaxError: File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy.
Load paths:
  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common
  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css
  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass
  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets
  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets
  Compass::SpriteImporter
            import at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:67
     imported_file at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:28
       css_import? at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:37
      visit_import at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:217
              send at org/jruby/RubyKernel.java:2097
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53
           collect at org/jruby/RubyArray.java:2318
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:109
  with_environment at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:121
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:108
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37
        visit_root at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:128
              send at org/jruby/RubyKernel.java:2097
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100
              send at org/jruby/RubyKernel.java:2097
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:7
            render at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/root_node.rb:20
           _render at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:315
            render at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:262
            (root) at <script>:48
18:16:12,505 ERROR [http-bio-3000-exec-29][DynamicCSSFilter:182] Unable to parse SASS on CSS /css/dockbar_vertical.css
com.liferay.portal.kernel.scripting.ScriptingException: java.util.concurrent.ExecutionException: org.jruby.embed.EvalFailedException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:254)
    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:129)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSUtil._parseSass(DynamicCSSUtil.java:509)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSUtil.parseSass(DynamicCSSUtil.java:178)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSFilter.getDynamicContent(DynamicCSSFilter.java:147)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSFilter.processFilter(DynamicCSSFilter.java:209)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
    at com.sun.proxy.$Proxy611.doFilter(Unknown Source)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
    at com.liferay.portal.servlet.filters.aggregate.AggregateFilter.processFilter(AggregateFilter.java:518)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
    at com.sun.proxy.$Proxy611.doFilter(Unknown Source)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
    at com.sun.proxy.$Proxy611.doFilter(Unknown Source)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:165)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: org.jruby.embed.EvalFailedException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at java.util.concurrent.FutureTask.report(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:248)
    ... 68 more
Caused by: org.jruby.embed.EvalFailedException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
    at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
    at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
    at com.liferay.portal.scripting.ruby.RubyExecutor.doEval(RubyExecutor.java:189)
    at com.liferay.portal.scripting.ruby.RubyExecutor$EvalCallable.call(RubyExecutor.java:332)
    at com.liferay.portal.scripting.ruby.RubyExecutor$EvalCallable.call(RubyExecutor.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    ... 1 more
Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at Sass::Tree::ImportNode.import(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:67)
    at Sass::Tree::ImportNode.imported_file(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:28)
    at Sass::Tree::ImportNode.css_import?(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:37)
    at Sass::Tree::Visitors::Perform.visit_import(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:217)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2097)
    at rubyjit.visit_A0E8B1FA377AB9D1DEC5F2DD57734F88312F36B9.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37)
    at Sass::Tree::Visitors::Perform.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100)
    at rubyjit.visit_children_2CE1DD94F811FAA517E73B1DDDD68EFAF663D935.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53)
    at org.jruby.RubyArray.collect(org/jruby/RubyArray.java:2318)
    at rubyjit.visit_children_2CE1DD94F811FAA517E73B1DDDD68EFAF663D935.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53)
    at Sass::Tree::Visitors::Perform.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:109)
    at Sass::Tree::Visitors::Perform.with_environment(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:121)
    at Sass::Tree::Visitors::Perform.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:108)
    at rubyjit.visit_A0E8B1FA377AB9D1DEC5F2DD57734F88312F36B9.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37)
    at Sass::Tree::Visitors::Perform.visit_root(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:128)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2097)
    at rubyjit.visit_A0E8B1FA377AB9D1DEC5F2DD57734F88312F36B9.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37)
    at Sass::Tree::Visitors::Perform.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2097)
    at #<Class:0x5a10abe4>.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:7)
    at Sass::Tree::RootNode.render(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/root_node.rb:20)
    at Sass::Engine._render(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:315)
    at Sass::Engine.render(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:262)
    at #<Class:0x510084bc>.(root)(<script>:48)    

更改主题的名称,除去我在上一篇文章中所读的“ _”和“-”,即可解决。