Requested resource [/VAADIN/themes/xxx/styles.css]

Hi,

I’m using Vaadin 7 and I have problem with my custom theme called xxx. My theme was created by Eclipse and everything looks like as in the “Book of Vaadin”. And everything works fine when production mode is false. But when production mode is true it does not work. Message:

com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN
INFO: Requested resource
[/VAADIN/themes/xxx/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.

According to the manual styles.css doesn’t need. If styles.css needs what should styles.css contain?

Thanks in advance,
Zoli

Your problem is that when production mode is off, Vaadin generates automatically styles.css from styles.scss when styles.css is requested. But when production mode is on, it doesn’t do this generation.


This tutorial
has a little more information and instructions on how to compile the theme.

Thanks for the answers above. After compiling everything works fine.