h3.Tomcat 7 manager fails when deploying a WAR file when using the AJP connector
When the Tomcat 7 manager tries to deploy a war file, it fails with the following error:
{code}
Feb 28, 2013 8:20:35 AM org.apache.coyote.ajp.AjpMessage processHeader
SEVERE: Invalid message received with signature 8192
{code}
*ANSWER:*
By default, the maximum packet size that can be process by the AJP connector is 8192 bytes. Do the following to change the default:
# Edit the Tomcat *server.xml* file located in the *conf* directory of your Tomcat installation.
# Find the *Connector* entry (show below).
{code}
<Connector port="8009" protocol="AJP/1.3" tomcatAuthentication="false" redirectPort="8443" address="127.0.0.1" maxPostSize="536870912" />
{code}
# Add *maxHttpHeaderSize="65536"* and *packetSize="65536"* so that the Connector is as follows:
{code}
<Connector port="8009" protocol="AJP/1.3" tomcatAuthentication="false" redirectPort="8443" address="127.0.0.1" maxPostSize="536870912" maxHttpHeaderSize="65536" packetSize="65536" />
{code}
# When you are satisfied with your changes, save your changes and restart your Tomcat server.
|