On 1/20/21 8:15 AM, Rémy Maucherat wrote:
On Tue, Jan 19, 2021 at 5:02 AM Rob Sargent <rsarg...@xmission.com> wrote:
Dealing with a complex configuration using the embedded API can be a bit
problematic. If you're using a recent Tomcat 9 (9.0.38+), you could use the
code generator that was designed for ahead of time compilation to help you
out: it will produce Tomcat embedded equivalent code to the server.xml
you're using. I would think server.xml is easier to get right, and there
are probably tons of examples that you can use to help out. Then you can
cut and paste the generated code and refine it as needed.
If you want to try it out, you can add "-generateCode" to the Tomcat
command line, such as "./bin/catalina.sh run -generateCode". The code will
be generated in the work directory.
Of course, that won't help you get the certificates right. Good luck !
Rémy
That's an interesting tack but I haven't "installed" Apache, there is no
catalina.sh and no server.xml.
My intent was to avoid the addition of the entire customary web site
infrastructure when all I really wanted was the correct handling of a
Selector (and https communication on same). And now, thanks to Mark's
suggestion about Tomcat's own test keys I have reached my goal, at least
in a dev environment.
Now on to scaling and AWS deployment. Wish me luck.