[spring]启动时报错:NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
2017-11-20 17:18
567 查看
原文链接:http://blog.csdn.net/szwangdf/article/details/42145463
Spring V4.1.0+的版本在不支持Servlet3.0的应用服务器上跑时会报以下错误:
NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
比如说:tomcat 7以下的版本、jboss 4.2.3以下的版本
解决版本有两个(任意选一个即可):
1)、退回到Spring V4.0.7
2)、升级应用服务器到支持Servlet3的应用服务器。
比如tomcat7+(最好是tomcat8+)、jboss as 7+
Spring V4.1.0+的版本在不支持Servlet3.0的应用服务器上跑时会报以下错误:
NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
比如说:tomcat 7以下的版本、jboss 4.2.3以下的版本
解决版本有两个(任意选一个即可):
1)、退回到Spring V4.0.7
2)、升级应用服务器到支持Servlet3的应用服务器。
比如tomcat7+(最好是tomcat8+)、jboss as 7+
相关文章推荐
- [spring]启动时报错:NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- [spring]启动时报错:NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- [spring]启动时报错:NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()
- 把系统的Spring3.2.1升级到4.1.0之后测试接口报NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()
- web服务器(jetty)处理请求出现NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- SpringBoot启动异常Caused by: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getServl
- 使用Spring Boot操作Hive JDBC时,启动时报出错误:NoSuchMethodError: org.eclipse.jetty.servlet.ServletMapping.setDef
- java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- 使用Spring Boot操作Hive JDBC时,启动时报出错误:NoSuchMethodError: org.eclipse.jetty.servlet.ServletMapping.setDef
- java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- javax.servlet.http.HttpServletResponse.getStatus()I
- 使用Spring Boot操作Hive JDBC时,启动时报出错误:NoSuchMethodError: org.eclipse.jetty.servlet.ServletMapping.setDef
- NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- groovy servlet java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- [spring]启动时报错:NoSuchMethodError
- 在Servlet中直接调用Spring的getBean引起的HTTP Status 500 - Incorrect result size: expected 1, actual 0异常
- Tomcat正常启动,页面报HTTP Status 500 - Class com.fjc.Hello is not a Servlet,控制台报 cannot be cast to javax.se
- Maven ssm框架配置报错HTTP Status 500 - Servlet.init() for servlet spring threw exception
- tomcat启动,访问http://localhost:8080时报http status 404
- HTTP Status 500 - Servlet.init() for servlet springmvc threw exception