用Myeclipse开发WebSocket时的小Demo报错
The hierarchy of the type MyMessageInbound is inconsistent
是因为缺少包依赖,不仅仅需要catalina.jar还需要tomcat-coyote-7.0.27.jar 下载地址是http://www.java2s.com/Code/Jar/t/Downloadtomcatcoyote7027jar.htm
如果不想用maven的话,可以手动下载导入即可
严重: Parse error in application web.xml file at jndi:/localhost/ipws/WEB-INF/web.xml java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml
在tomcat 配置文件context.xml中添加<Loader delegate="true" />即可。