0

vaadin 6.8.13

我的应用程序正常工作。但是在应用程序工作期间,vaadin 在控制台中显示了很多警告。

是否有可能在不添加 gwt 库的情况下禁用此警告?警告示例:

16:09:27,342 WARN  [org.jboss.modules] (http-localhost-127.0.0.1-8080-1) Failed to define class com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler$ShortcutActionHandlerOwner in Module "deployment.vaadin_1.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler$ShortcutActionHandlerOwner (Module "deployment.vaadin_1.war:main" from Service Module Loader)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
    at org.jboss.modules.Module.loadModuleClass(Module.java:517)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_79]
    at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_79]
    at java.security.SecureClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_79]
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
    at org.jboss.modules.Module.loadModuleClass(Module.java:517)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_79]
    at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.annotation.AnnotationParser.parseSig(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.annotation.AnnotationParser.parseClassValue(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.annotation.AnnotationParser.parseMemberValue(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.annotation.AnnotationParser.parseAnnotation2(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.annotation.AnnotationParser.parseAnnotations2(Unknown Source) [rt.jar:1.7.0_79]
    at sun.reflect.annotation.AnnotationParser.parseAnnotations(Unknown Source) [rt.jar:1.7.0_79]
    ...
Caused by: java.lang.NoClassDefFoundError: com/google/gwt/user/client/ui/HasWidgets
    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_79]
    at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_79]
    at java.security.SecureClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_79]
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
    ... 57 more
Caused by: java.lang.ClassNotFoundException: com.google.gwt.user.client.ui.HasWidgets from [Module "deployment.vaadin_1.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    ... 62 more
4

1 回答 1

0

尝试这个

当我们使用 JBOSS AS 时会出现这个错误 - https://developer.jboss.org/thread/169575?tstart=0

原因:编译 Vaadin 客户端小部件所需的 gwt-user.jar 中的一些或所有类被 JBoss AS 不必要地加载。

修复:在 WEB-INF/lib 文件夹中的部署包中包含 gwt-user.jar 和 vaadin.jar。

参考 -将 vaadin 部署到 JBoss 7.0 给了我一个 ClassNotFoundException

于 2016-08-02T05:56:54.760 回答