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
答案 0 :(得分:0)
试试这个
当我们使用JBOSS AS - https://developer.jboss.org/thread/169575?tstart=0
时会发生此错误原因:编译Vaadin客户端小部件所需的gwt-user.jar中的部分或全部类都是由JBoss AS不必要地加载的。
修复:使用vaadin.jar将gwt-user.jar包含在WEB-INF / lib文件夹中的部署包中。
参考文献 - Deploy vaadin to JBoss 7.0 gives me a ClassNotFoundException