Vaadin 7.1.0无法找到styles.css文件问题

productionMode = false外,还有哪些需要设置吗?总是如下提示:

com.vaadin.sass.internal.expression.exception.ArithmeticException: Illegal arithmetic expression
at com.vaadin.sass.internal.expression.ArithmeticExpressionEvaluator.createExpression(ArithmeticExpressionEvaluator.java:102)
at com.vaadin.sass.internal.expression.ArithmeticExpressionEvaluator.evaluate(ArithmeticExpressionEvaluator.java:132)
at com.vaadin.sass.internal.tree.VariableNode.traverse(VariableNode.java:116)
at com.vaadin.sass.internal.ScssStylesheet.traverse(ScssStylesheet.java:271)
at com.vaadin.sass.internal.ScssStylesheet.traverse(ScssStylesheet.java:280)
at com.vaadin.sass.internal.ScssStylesheet.compile(ScssStylesheet.java:187)
at com.vaadin.server.VaadinServlet.serveOnTheFlyCompiledScss(VaadinServlet.java:815)
at com.vaadin.server.VaadinServlet.serveStaticResourcesInVAADIN(VaadinServlet.java:601)
at com.vaadin.server.VaadinServlet.serveStaticResources(VaadinServlet.java:571)
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:229)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
七月 01, 2013 4:34:21 下午 com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN
資訊: Requested resource
[/VAADIN/themes/dashboard/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

不是配置的问题,这个应该是theme-compiler的问题。你在scss文件里用到了加减乘除之类的数学操作吗?能不能把你的scss文件贴出来?数学操作现在还不成熟,狠可能是里面的一个bug.

我用的是QuickTickets Dashboard的theme。一点没改,以前用7.0.0的时候没问题,但用 ivy.xml 升级成7.1.0后就不行了,无论是自动转换,还是手动转换都提示错误,转换不成功然后就提示找不到styles.css文件,不知道哪里出错了。。。。

这个跟theme-compiler有关,7.1开始部分支持数学操作了,而’/'又是一个css的operator,所以有时候会有问题。我看dashboard theme的source code有更新,你更新下dashboard theme试下

嗯,谢谢,旧的是里面的Common.scss一条语句中有’/',新版本里面已经修改好了。