jfinal版本5.0.0,用tomcat7部署,上传报错

直接用官方demo,增加了一个上传action

image.png

image.png

项目部署在tomcat7时,上传报错:

image.png

用jfinal-undertow部署时则正常。


评论区

苦涩的决断

2022-08-05 15:53

jfinalv5 要 jdk8或以上才行,tomcat7的jdk好像不够

gisphm

2022-08-05 16:33

自己针对错误搜索引擎找一下就知道了

getContentLengthLong()


long getContentLengthLong()
Since:
Servlet 3.1


按照方法的最低 servlet 要求和下面这个版本比较表格,选择 tomcat 版本就行了。

tomcat 版本比较
















































































































Servlet Spec JSP Spec EL Spec WebSocket Spec Authentication (JASPIC) Spec Apache Tomcat Version Latest Released Version Supported Java Versions
6.0 3.1 5.0 2.1 3.0 10.1.x 10.1.0-M17 (beta) 11 and later
5.0 3.0 4.0 2.0 2.0 10.0.x 10.0.23 8 and later
4.0 2.3 3.0 1.1 1.1 9.0.x 9.0.65 8 and later
3.1 2.3 3.0 1.1 1.1 8.5.x 8.5.81 7 and later
3.1 2.3 3.0 1.1 N/A 8.0.x (superseded) 8.0.53 (superseded) 7 and later
3.0 2.2 2.2 1.1 N/A 7.0.x (archived) 7.0.109 (archived) 6 and later
(7 and later for WebSocket)
2.5 2.1 2.1 N/A N/A 6.0.x (archived) 6.0.53 (archived) 5 and later
2.4 2.0 N/A N/A N/A 5.5.x (archived) 5.5.36 (archived) 1.4 and later
2.3 1.2 N/A N/A N/A 4.1.x (archived) 4.1.40 (archived) 1.3 and later
2.2 1.1 N/A N/A N/A 3.3.x (archived) 3.3.2 (archived) 1.1 and later

JFinal

2022-08-06 16:34

@gisphm 这个应该是正解

小小猫老板

2022-08-09 15:02

放弃用tomcat了,还是jfinal-undertow用得爽

steven_lhcb_9527

2022-09-30 09:10

最不行都要用tomcat8.谁还用tomcat7?

热门反馈

扫码入社