在myEclipse运行运行一个项目是出现了这个错误:

        The server does not support version 2.5 of the J2EE Web module specification

原因:用到了servlet2.5 的规范,或新功能,然后你运行在了不支持2.5的web容器上,就会出这个错。解决方法:
web.xml 里面的规范改为2.4的,或者发布到相对应的tomcat 版本上(见最下图)。

    ps:  眼睛真的是,,,哎,看错了,找了好久的错。。。。


右击你的工程,点最先面的属性property,转到下面这个你项目保存的路径,找到settings文件,如图:

The server does not support version 2.5 of the J2EE Web module specification错误 解决方法


右击上图所示的文件,用记事本方式打开。

如下图所示。我原先是2.5,现在改成2.4了,OK。

The server does not support version 2.5 of the J2EE Web module specification错误 解决方法

tomcat各版本与servlet的对应关系:

The server does not support version 2.5 of the J2EE Web module specification错误 解决方法

相关文章:

  • 2021-09-08
  • 2018-11-14
  • 2020-05-29
  • 2021-09-08
  • 2021-10-02
  • 2021-09-08
  • 2018-02-28
  • 2019-09-04
猜你喜欢
  • 2021-09-08
  • 2021-09-08
  • 2021-09-16
  • 2021-09-08
  • 2020-05-30
  • 2019-07-11
  • 2021-09-01
  • 2021-08-07
相关资源
相似解决方案