閱讀132 返回首頁    go 阿裏雲 go 技術社區[雲棲]


tomcat報錯:The server does not support version 3.0

一、發現問題
用spring tool suite建立web項目,發布到tomcat上。發現tomcat選項置灰,表示不可部署,並提示The server does not support version 3.0 of the J2EE Web module 
specification。

 

二、原因分析
Tomcat 6.0僅支持到Servlet 2.5,而此時項目是3.0版本的,spring tool suite默認項目servlet3.0。

 

三、解決辦法
找到項目.settings文件夾的org.eclipse.wst.common.project.facet.core.xml文件,修改<installed facet="jst.web" version="3.0"/>為<installed facet="jst.web" 
version="2.5"/>,刷新項目即可。

最後更新:2017-04-03 20:19:09

  上一篇:go 安裝ttf格式字體
  下一篇:go 正則表達式表示任意字符