单独拉取im模块到其他项目引入jar包启动报错

提问 已结 8 341
1xinhua
1xinhua VIP1 2018-09-04 12:16:22
悬赏:20积分 收藏
产品:jeeplus 版本:
严重: Exception starting filter startFilter java.lang.NoClassDefFoundError: org/java_websocket/server/WebSocketServer at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2469) at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:835) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1277) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1142) at im.websocket.WebSockertFilter.startWebsocketChatServer(WebSockertFilter.java:47) at im.websocket.WebSockertFilter.init(WebSockertFilter.java:37) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4659) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: org.java_websocket.server.WebSocketServer at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1142) ... 21 more 九月 04, 2018 11:50:55 上午 org.apache.catalina.core.StandardContext startInternal 严重: One or more Filters failed to start. Full details will be found in the appropriate container log file 九月 04, 2018 11:50:55 上午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/pdoa] startup failed due to previous errors 九月 04, 2018 11:50:55 上午 org.apache.catalina.core.ApplicationContext log
回帖
  • 2018-09-04 12:30:12
    face[泪]
    0 回复
  • 2018-09-04 12:47:46   最后修改:2018-09-04 13:47:52
    websocket的jar包 你没拷贝过去
    1 回复
  • 2018-09-04 13:35:34
    @蓝色忧郁 已经引入了啊img[/userfiles/fly/5eac03f134b8407e81563389967cf528/files/1536039333194.]
    0 回复
  • 2018-09-04 14:05:41
    @蓝色忧郁 eclipse tomcat1.8 struts2+spring+hibernate 项目
    0 回复
  • 2018-09-04 17:46:11
    @蓝色忧郁 并没有哦解决
    0 回复
  • 2018-09-05 14:53:16
    java.lang.NoClassDefFoundError: org/java_websocket/server/WebSocketServer 看报错 就是没有加载到这个class
    0 回复
  • 2018-09-06 10:04:05
    @蓝色忧郁 包已经引入 该怎么去修改呢
    0 回复
  • 2018-09-06 11:28:18
    @1xinhua 问题已解决 原因是虽然maven已经引入了可是我看tomcat编译后的lib下面没有此包所以运行跑的错
    0 回复