Skip to content
Advertisement

Simple Embedded Tomcat 10 Example

I’m trying to get a simple embedded tomcat 10.1.0-M11 example working but I keep getting localhost refused to connect when I go to http://localhost:8080/aa. There is no StackOverflow label yet for embedded-tomcat-10.

Here is my code:

JavaScript

Dependencies

JavaScript

UPDATE

I have gone through every single version I found that this bug was introduced in version 9.0.0.M4 and never resolved since then. Any newer version renders this example useless.

Advertisement

Answer

As explained in this question, you need to add a Connector, which can be done like this:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement