问题描述
我正拼命尝试用登录安全的页面/视图来构建一个Vaadin小项目.我发现vaadin4spring并认为我可以根据安全性示例开始.但是,在导入项目并运行它之后,我收到了消息(在项目上没有任何更改):
I am desperately trying to build a little Vaadin project with login secured pages/views. I have found vaadin4spring and thought I could start based on the security sample. However, after importing the project and running it, I am receiving the message (without any changes at the project):
我还尝试过手动编译窗口小部件集,但一开始是不可能的(缺少WebContent文件夹).将项目转换为使用WebFacets并添加动态Web模块后,便可以进行编译.但是与小部件集相关的错误消息仍然相同.
I have also tried to compile the widgetset manually, which wasn’t possible at the beginning (missing WebContent folder). After converting the project to use WebFacets and adding Dynamic Web Module the compilation was possible. But the widgetset related error message was still the same.
有人可以帮助我解决这个问题吗?我觉得这只是我想念的一件事.
Can anybody help me with this problem? I have the feeling that it is just a little thing I am missing.
推荐答案
我认为您以某种方式导入了示例,因为您正在谈论的是WebContent文件夹.我敢打赌,您正在使用Eclipse(因为与WTP相关的WebContent文件夹).
I think you have imported the sample somehow wrong, because you are talking about WebContent folder. I bet you are using eclipse (because of WTP related WebContent folder).
- 从工作区中删除旧项目,并创建可能会蚀的设置文件
- 选择文件->导入-> Maven->现有的Maven项目
您可能想在开始使用该项目之前进行全新安装:从顶级"parent-pom"项目中,右键单击选择:运行方式-> Maven安装.喝杯咖啡,构建过程将花费一些时间.
You probably want to make one fresh install before you start to play with the project: from the top level "parent-pom" project, choose with right click: Run as -> Maven install. Get a cup of coffee, the build will take a while.
享受!
例如要开始您似乎尝试过的安全性示例,只需执行org.vaadin.spring.samples.security.ApplicationInitializer中的main方法即可.在eclipse中,右键单击该类,然后选择以Java应用程序运行",该应用程序将通过嵌入式Tomcat在 http://localhost:8080处启动./
To start e.g. the Security sample you seem to have tried, just execute the main method from org.vaadin.spring.samples.security.ApplicationInitializer. In eclipse, right click on the class and choose Run as Java Application and the app will launch with embedded Tomcat at http://localhost:8080/
这篇关于vaadin4spring安全性示例:无法加载窗口小部件集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!