解决java.lang.NoClassDefFoundError
报错信息如下:
[ERROR]Activator initialize error : websocket [ERROR]io/netty/util/concurrent/GenericFutureListener java.lang.NoClassDefFoundError: io/netty/util/concurrent/GenericFutureListener at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) …… Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.GenericFutureListener at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1363) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1186) ... 45 more
类找不到,应该是缺少了依赖,这个类对应的依赖可以从中得到它
https://mvnrepository.com/art...
你可以加
<!-- https://mvnrepository.com/artifact/io.netty/netty-all --> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>5.0.0.Alpha2</version> </dependency>
到pom文件或从站点下载jar并将其添加到类路径或lib文件夹
相关推荐
fengshantao 2020-10-29
arctan0 2020-10-14
爱传文档 2020-07-28
gzx0 2020-07-05
fengshantao 2020-07-04
fengshantao 2020-07-02
jannal 2020-06-21
arctan0 2020-06-19
arctan0 2020-06-16
gzx0 2020-06-14
fengshantao 2020-06-13
gzx0 2020-06-12
arctan0 2020-06-11
fengshantao 2020-06-11
mbcsdn 2020-05-19
arctan0 2020-05-16
爱传文档 2020-05-08
爱传文档 2020-05-04