我收到
java.lang.NoClassDefFoundError: com/vaadin/data/util/converter/Converter$ConversionException
错误。我将Person
类作为实体,我的应用程序类是这样的:
public class SimplejpaApplication extends Application {
@Override
public void init() {
// TODO Auto-generated method stub
VerticalLayout layout = new VerticalLayout();
JPAContainer<Person> persons =
JPAContainerFactory.make(Person.class, "book-examples");
persons.addEntity(new Person("Marie-Louise Meilleur", 117));
Table personTable = new Table("The Persistent People",persons);
layout.addComponent(personTable);
setMainWindow(new Window("simple",layout));
}
我正在使用vaadin-jpacontainer-agpl-3.0-3.0.0-alpha2.jar 有人能说出为什么会发生这个错误吗?谢谢你。