gpt4 book ai didi

java - 瓦丁 : Widget set is not getting loaded.

转载 作者:太空宇宙 更新时间:2023-11-04 13:13:04 25 4
gpt4 key购买 nike

我能够将 Vaadin 模块集成到我们基于 Spring 的应用程序中。集成后,我想运行甘特图的演示,它是 Vaadin 的附加组件,并在 github here 上找到了它。 。文件夹内有一个演示项目。一切都很好,除了我的小部件集有问题。

问题截图:

Widget set not loaded

我还收到一个不可序列化的错误:

Nov 18, 2015 3:16:48 PM org.apache.catalina.session.StandardManager startInternal
SEVERE: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.journaldev.spring.Vaadin.Util$5
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1355)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)

用户界面代码:

@Theme("demo")
@SpringUI
@SuppressWarnings("serial")
public class MyVaadinUI extends UI {


@WebServlet(value = "/testvaadin", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class, widgetset = "org.tltv.gantt.demo.DemoWidgetSet")
public static class Servlet extends SpringVaadinServlet {
}

// Code for gaant-chart taken from demo, code too big and not important //for error
// Pastebin link : http://pastebin.com/mi1ZhH30
}

POM.xml:

Vaadin 插件 http://maven.vaadin.com/vaadin-addons

<!--- Vaadin dependency -->
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring</artifactId>
<version>1.0.0</version>
</dependency>

<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
<version>${vaadin.version}</version>
</dependency>

<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
<version>${vaadin.version}</version>
</dependency>

<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-push</artifactId>
<version>${vaadin.version}</version>
</dependency>

<dependency>
<groupId>org.tltv.gantt</groupId>
<artifactId>gantt-addon</artifactId>
<version>0.9.0</version>
</dependency>

web.xml:

 <servlet-mapping>
<servlet-name>vaadin-spring</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>cometd</servlet-name>
<servlet-class>org.cometd.server.CometDServlet</servlet-class>
<init-param>
<param-name>timeout</param-name>
<param-value>300000</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
<async-supported>true</async-supported>
</servlet>

我做错了什么?请告诉我。多谢。 :-)

最佳答案

尝试运行mvn clean install来编译小部件集。如果您不想使用命令行,请右键单击您的项目,运行方式 > Maven 安装

您还可以在 Eclipse 中编译您的小部件集。打开您的 widgetset 文件并单击 Eclipse 菜单中的“齿轮”符号。

关于java - 瓦丁 : Widget set is not getting loaded.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33783130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com