Vaadin 7 - 未找到请求的资源

时间:2022-02-03 13:29:48

Everything was fine untill this morning. Here is what I found when I ran my application on Tomcat server:

一切都很好,直到今天早上。这是我在Tomcat服务器上运行应用程序时发现的内容:

INFO: Requested resource [/VAADIN/themes/connect/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.

信息:从文件系统或通过类加载器找不到请求的资源[/VAADIN/themes/connect/styles.css]。将widgetset和/或主题JAR添加到类路径或将文件添加到WebContent / VAADIN文件夹。

The project is on a SVN and it works fine in everyone else's pc! I deleted the whole ecplise, deleted cache and stuff... but still couldn't make to solve this issue!

该项目是在SVN上,它在其他人的电脑上工作正常!我删除了整个ecplise,删除缓存和东西......但仍然无法解决这个问题!

Why does it not load this damn .css??

为什么它不加载这该死的.css ??

2 个解决方案

#1


0  

Did you make sure that the file styles.css exist in the path /VAADIN/themes/connect/styles.css? If not, you can always compile your themes with mvn vaadin:compile-theme.

您是否确保文件styles.css存在于路径/VAADIN/themes/connect/styles.css中?如果没有,您可以随时使用mvn vaadin:compile-theme编译主题。

#2


0  

If you are using Maven try to run mvn clean install to compile the widgetset. If you don't want to use command line, right click in your proyect, Run As > Maven install.

如果您正在使用Maven,请尝试运行mvn clean install来编译widgetset。如果您不想使用命令行,请右键单击您的proyect,Run As> Maven install。

If you are not using Maven, open your widgetset file and click in the "gear" symbol in the eclipse menu.

如果您不使用Maven,请打开您的widgetset文件,然后单击eclipse菜单中的“gear”符号。

#1


0  

Did you make sure that the file styles.css exist in the path /VAADIN/themes/connect/styles.css? If not, you can always compile your themes with mvn vaadin:compile-theme.

您是否确保文件styles.css存在于路径/VAADIN/themes/connect/styles.css中?如果没有,您可以随时使用mvn vaadin:compile-theme编译主题。

#2


0  

If you are using Maven try to run mvn clean install to compile the widgetset. If you don't want to use command line, right click in your proyect, Run As > Maven install.

如果您正在使用Maven,请尝试运行mvn clean install来编译widgetset。如果您不想使用命令行,请右键单击您的proyect,Run As> Maven install。

If you are not using Maven, open your widgetset file and click in the "gear" symbol in the eclipse menu.

如果您不使用Maven,请打开您的widgetset文件,然后单击eclipse菜单中的“gear”符号。