Tomcat报错 HTTP Status 500 – Internal Server Error?

问题:在IDEA中编写Servlet实现类并在web.xml中配置好servlet信息之后,页面访问编写的出现了如下错误:

问题分析:

通过Root Cause可以看出是Jdk版本不匹配的问题:我的编译时候的版本和运行时的版本不一致,编译的版本是JDK11,运行时的版本是JDK8.

Java虚拟机做了规定,jdk1的版本号是45,只能执行[45.0-46)之间的字节码,JDK8可执行的范围代码在[45.0-53)之间,我的版本是55,那么就是JDK11,那么只能由JDK11之后的版

本来执行。所以才会报错。

解决方法:将IDEA中的SDK版本改为8即可。

注意:到这里会发现我的tomcat项目报出error,找不到SDK11,于是猜测tomcat项目里配置了JDK的信息,果然在tomcat.iml找到并改为JDK_8即可,问题解决。

原文地址:https://www.cnblogs.com/iceywu/p/12150257.html

时间: 2024-08-11 05:41:49

Tomcat报错 HTTP Status 500 – Internal Server Error?的相关文章

docker push 报错:received unexpected HTTP status: 500 Internal Server Error

解决办法:关闭selinux [[email protected] ~]# docker push 10.0.0.10:5000/nginx The push refers to a repository [10.0.0.10:5000/nginx] 22439467ad99: Retrying in 1 second b4a29beac87c: Retrying in 1 second 488dfecc21b1: Retrying in 1 second received unexpected

Tomcat 提示 HTTP Status 500 – Internal Server ErrorTomcat 提示 HTTP Status 500 – Internal Server Error

错误信息: 1 HTTP Status 500 – Internal Server Error 2 Type Exception Report 3 4 Message Error instantiating servlet class [Servlet.BeerSelect] 5 6 Description The server encountered an unexpected condition that prevented it from fulfilling the request. 7

docker镜像下载出现:received unexpected HTTP status: 500 Internal Server Error

1.镜像下载总是出现报错:received unexpected HTTP status: 500 Internal Server Error 2.尝试多种方法: ①阿里云docke加速器:注册之后,配置好重新下载依然出现这种情况: ②尝试加上版本号: 原先我是直接复制https://hub.docker.com/r/library/上的: 之后改成这样: docker pull tomcat:9.0.30 直接去掉后面只留版本号,这样马上就下载好了 原文地址:https://www.cnblo

HTTP Status 500 ? Internal Server Error

getWriter()和getOutputStream()不能同时调用 HTTP Status 500 ? Internal Server Error Type Exception Report Message getWriter() has already been called for this response Description The server encountered an unexpected condition that prevented it from fulfilli

zuul网管配置其他服务时 HTTP Status 500 – Internal Server Error

1.这个错误是由三个原因导致的 (1).我在给类的接口命名的时候前面少加了一个/ (2)给zuul配置路由的时候多加了个服务名,serviceId名称就是spring的name,而不是eureka注入服务的那个名称 spring: application: name: worksserver routes: works: #works服务配置 path: /works/** #制定好path和serviceId,所有以path开头的请求都会被路由到对应的服务.如下面/hiapi/**被路由到se

python urllib2导出elasticsearch数据时 返回 "urllib2.HTTPError: HTTP Error 500: Internal Server Error"

0.业务场景 将ES中某个index的某个字段的所有数据,导出到文件中 1.ES数据导出方法简述 ES数据导出方法,我主要找到了以下几个方面,欢迎大家补充: ES官方API:snapshot and restore module The snapshot and restore module allows to create snapshots of individual indices or an entire cluster into a remote repository like sha

EBS Webservice Timeout,HTTP Server Return "500 Internal Server Error"

http://blog.itpub.net/26687597/viewspace-1207571/ 基于Oracle EBS R12,开发了一个Webservice用于返回某项主数据,当请求的数据量非常大的时候(大于6000行的数据量),Oracle应用服务器总是给返回一个500 Internal Server Error.请求数据量小的时候,Webservice运行没有问题,能够正常返回请求数据. 客户端接到的报错: <!DOCTYPE HTML PUBLIC "-//IETF//DTD

[nginx]nginx的一个奇葩问题 500 Internal Server Error phpstudy2018

[nginx]nginx的一个奇葩问题 500 Internal Server Error 解决方案 nginx 一直报500 Internal Server Error 错误,配置是通过phpstudy2018站点域名管理生成的. 默认是  root   "D:\php\phpstudy\PHPTutorial\WWW\foxphp"; 修改成这样就好了 root   "D:\\php\\phpstudy\\PHPTutorial\\WWW\\foxphp"; 查

在使用pydelicious时出现HTTP Error 500: Internal Server Error的错误的解决方法:

问题:在学习<集体智慧编程>的过程中,第二章中如果你遇到了pydelicious.PyDeliciousException: HTTP Error 500: Internal Server Error这样的错误具体的 解决方法我是在stack overflow上找到的,原文链接分为两个部分 http://stackoverflow.com/questions/29543799/pydelicious-get-popularprogramming- doesnt-return-any-valid