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"/>,刷新项目即可。

目录
相关文章
|
6月前
|
Java
ElasticSearch启动报错 java version is an early-access build ,only use release builds【已解决】
ElasticSearch启动报错 java version is an early-access build ,only use release builds【已解决】
71 0
|
6月前
|
Java
SpringBoot启动报错:Unable to start LiveReload server【已解决】
SpringBoot启动报错:Unable to start LiveReload server【已解决】
299 0
|
应用服务中间件
Tomcat报错:The required Server component failed to start so Tomcat is unable to start
Tomcat报错:The required Server component failed to start so Tomcat is unable to start
236 0
|
应用服务中间件 Android开发
Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts.
Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts.
139 0
Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts.
|
XML 应用服务中间件 Android开发
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
|
应用服务中间件 Android开发
springMvc16-Could not publish server configuration for Tomcat v8.0 Server at localhost.
springMvc16-Could not publish server configuration for Tomcat v8.0 Server at localhost.
103 0
|
应用服务中间件 Nacos
Nacos 启动报错 Unable to start web server……Unable to start embedded Tomcat
Nacos 启动报错 Unable to start web server……Unable to start embedded Tomcat
1181 0