TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS

Posted 不忘初心|方得始终

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS相关的知识,希望对你有一定的参考价值。

Tomcat报错如下:

 

 

解决方案:

问题出现原因是Tomcat的header缓冲区大小不够,需要conf目录下的server.xml中增加maxHttpHeaderSize字段即可:

<Connector port="8080"

  executor="tomcatThreadPool"     

   protocol="HTTP/1.1"     

  maxThreads="1000"     

  maxHttpHeaderSize="8192"     

  minSpareThreads="100"     

  maxSpareThreads="200"     

  acceptCount="1000"     

  maxConnections="1000"     

  connectionTimeout="30000"     

  keepAliveTimeout="15000"     

  maxKeepAliveRequests="1"      

   tcpNoDelay="true"     

  redirectPort="8443"     

  enableLookups="false"     

URIEncoding="UTF-8"/>

以上是关于TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS的主要内容,如果未能解决你的问题,请参考以下文章

启动TOMCAT报错 java.util.zip.ZipException: invalid LOC header (bad signature)

eclipse tomcat启动项目报错:Invalid byte tag in constant pool: 19 jackson-core-2.10.1.jar/] for annotatio

TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS

配置tomcat连接器后,启动服务报错“No Certificate file specified or invalid file format"异常

运行Maven项目时出现invalid LOC header (bad signature)错误,Tomcat不能正常启动

idea点击RUN启动报错: Broken configuration due to unavailable plugin or invalid configuration dat