Netflix Zuul-simple-webapp.war launched under Tomcat

Source: Internet
Author: User

Follow Netflix's documentation on the GitHub wiki

Gradlew Jettyrun

You can start jetty to test.

After the local build war, I placed it on Tomcat while it was running, but I was not able to run it.

Here are some questions that are logged as follows:

1. Connection pool is shut down.

This is an example of the problem of improper use of httpclient by Groovy/filters/route/simplehostroutingfilter.

It can also be observed in the boot jetty.

2. The URL cannot be opened by Tomcat in the GitHub wiki document, you can see that localhost:8080/can see the apache.org page. In Tomcat, ContextPath is clearly needed. So switch to localhost:8080/zuul/can't see anything. The reason for this is that when routing was used in Groovy/filters/route/simplehostroutingfilter, Request.getrequesturi () which contained the/zuul/was originally requested http://apache.org/, in Tomcat became the Http://apache.org/zuul, so the request in Tomcat can not be normal corresponding. Solution: Modify the code in Groovy/filters/route/simplehostroutingfilter

Netflix Zuul-simple-webapp.war launched under Tomcat

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.