Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 请求实体太大错误_Java_Apache_Apache2_Tomcat7 - Fatal编程技术网

Java 请求实体太大错误

Java 请求实体太大错误,java,apache,apache2,tomcat7,Java,Apache,Apache2,Tomcat7,目前在我的项目中,我遇到以下错误 1) Request entity too large error, The requested resource does not allow request Data with GET Requests, or the amount of the data provided in the request exceeds the capacity limit 2) Request entity too large error, The requested re

目前在我的项目中,我遇到以下错误

1) Request entity too large error, The requested resource does not allow request Data with GET Requests, or the amount of the data provided in the request exceeds the capacity limit
2) Request entity too large error, The requested resource does not allow request Data with POST Requests, or the amount of the data provided in the request exceeds the capacity limit**
当我在不同的模块提交我的页面时,我得到了这些错误。我在项目中使用Tomcat7和apache。我在tomcats server.xml中做了如下更改

<Connector port="8109" protocol="AJP/1.3" redirectPort="8443" maxPostSize="-1" packetSize="65536"/>


但我还是犯了同样的错误。有谁能告诉我还有什么地方需要更改以避免此问题吗?

这可能有点旧,但只是以防万一,如果有人遇到此问题

413请求实体太大

如果您的url在尝试下载大型文件时遇到此错误,请按如下所示修改配置

编辑站点的workers.properties文件

在Ubuntu上,这通常是在

/etc/libapache2 mod jk/workers.properties

worker..max_packet_size=65536


看看这个-和@Octopus谢谢你的链接。我试过了,但还是没有用。你能提供一些其他解决方案吗???因为你使用的是AJP连接器,你必须有一个反向代理,比如ApacheHTTPD。您还需要提高httpd.conf中的限制。