Invalid character found in method name. HTTP method names must is Tokens__tomcat

Source: Internet
Author: User
Info: At least one JAR is scanned for TLDs yet contained no TLDs. Enable Debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them.
Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. August 15, 2017 10:21:08 a.m. Org.apache.coyote.AbstractProtocol start info: Starting Protocolhandler ["http-nio-8080"] August 15, 201 7 10:21:08 a.m. Org.apache.coyote.AbstractProtocol Start info: Starting Protocolhandler ["ajp-nio-8009"] August 15, 2017 10:21:08 Morning Org.apache.catalina.startup.Catalina Start Info: Server startup in 24549 Ms August 15, 2017 10:21:44 a.m. Org.apache.coyote.htt P11. Abstracthttp11processor Process information: Error parsing HTTP request Header Note:further occurrences of HTTP header parsing ER
Rors'll is logged at the DEBUG level. Java.lang.IllegalArgumentException:Invalid character found in method name. HTTP method names must is tokens at Org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine (abstractnioinput Buffer.java:232) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1013) at Org. Apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:687) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1520) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1476) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61) at Java.lang.Thread.run ( thread.java:745)

just add the Maxhttpheadersize field to the Server.xml:

<connector uriencoding= "UTF-8" port= "
    8080" protocol= "Org.apache.coyote.http11.Http11NioProtocol" Usebodyencodingforuri= "false"
    enablelookups= "false"
               connectiontimeout= "20000"
               redirectport= "8443" Maxhttpheadersize= "The size you want"/>
<connector port= "8080" executor= "Tomcatthreadpool" protocol= "http/1.1"
     maxthreads=
     "1000" Maxhttpheadersize= "8192"
     minsparethreads= "maxsparethreads="
     acceptcount= "1000
     " maxconnections= "1000" connectiontimeout= "30000" keepalivetimeout= "15000" maxkeepaliverequests= "
     1 "
      tcpnodelay=" "True"
     redirectport= "8443"
     enablelookups= "false"
     uriencoding= "UTF-8"/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.