tomcat启动报javax.naming.NamingException: No naming context bound to this class loader

tomcat启动报javax.naming.NamingException: No naming context bound to this class loader

解决办法:
右键工程–>Build Path–>Configure Build Path…–>选中Libraries
在这里插入图片描述
如上图所示 出现了tomcatv6和tomcatv7 删除一个 重启tomcat 错误解决。
如果还出现这个错误则 先把上图中的 tomcat 移除(remove) 然后
Add Library…–>Server Runtime–>Next–>选中已安装的tomcat–>Finish

猜你喜欢

转载自blog.csdn.net/zhangmengfan_/article/details/92808804