-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 10/19/17 1:22 PM, Mark Thomas wrote:
> On 19/10/17 16:56, Mark Thomas wrote:
>> On 19 October 2017 15:11:19 BST, Brian Clozel
>> <bclo...@pivotal.io> wrote:
>>> Hi,
>>> 
>>> More and more servers are choosing to make available one or
>>> more solutions to use TLS native stacks by shipping them as
>>> JARs:
>>> 
>>> * Netty has quite a few options there 
>>> http://netty.io/wiki/forked-tomcat-native.html * Jetty is now
>>> shipping a conscrypt support as well 
>>> https://webtide.com/conscrypting-native-ssl-for-jetty/
>>> 
>> 
>> How does shipping a native library in a JAR work? What makes it
>> simpler than building from source?
> 
> Found the answer to my own question. Netty unpacks the native
> library into a temporary directory and loads it from there.
> 
> Packaging in a JAR is simply a convenience to enable end users to
> use their build tool of choice to pull in the library.

... and completely unnecessary for users using a packaged Tomcat,
since part of the "installation process" (either .exe "installer" for
Windows, or unzip/untar for anyone else) drops any packaged binaries
in the right place already. The problem is lack of binaries.

> For Tomcat, this would be useful for the embedded scenario.

Yes. The problem with Tomcat self-extracting a native library would be
that an embedded environment could have all kinds of problems with
that. If Tomcat extracted a native library to $TMPDIR and then allowed
the JVM to load from there, wouldn't that scare the hell out of a
developer or end-user who wasn't expecting that kind of thing? If
embedded users (developers) want to package Tomcat in that way, that's
fine, but Tomcat doing it without instructions seems like a horrible
mistake.

There is room for improving support for such a thing, but having
Tomcat provide a magic JAR file is something I'm very much -1 on doing.

> The full binary distributions could leverage the same mechanism or 
> they could do something different. That would increase the number
> of binary builds we needed to do for a release.

... and therein lies the challenge. We intentionally stopped
publishing binaries because it's such a PITA. We only produce binaries
for Microsoft Windows because (a) most Windows environment don't have
access to a compiler (sadly) and (b) there are only two artifacts to
produce: amd32 and amd64 builds.

If someone wants to volunteer to build every combination of
architecture, OS, and web server out there, I'm sure we'd appreciate
the contribution. Just be aware that it is a slippery slope. Next
thing you know, James Lampert will be asking us to produce AS/400
builds. (*ducks*)

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlno4boACgkQHPApP6U8
pFh4QA//RjVkmghJ0xx3WgI/SHvN5md3ywZPKNmMrPEyeL55R4e5g2yVEx/U5UTT
RGUICEmfhK77oQDu+YnKa95i23xGzv1CTtcE//kZeMYWu/pXaNlfF79dkmTGJqZe
bUZHCD62Zo7WtvuUVNgDt5tQn0hjq26e26/wE1jgvXk/lG3hE4tCgtH0D58uOyxI
1zu76kwaw/RubOVXBLUiSFJP/HM1hRyo0ERPqH/r0BAJv1SxPZ2Ok87wKs6pDfA5
0+raXKUmmt/DJ0T+OEEs30C7epqDMrIKW8T8X3H9gBSNU3Gta/Sp2r1G3NMxucJc
NZapiDRh+ZE42Tb76OCOAAQHtLcdCN8Hz34SKs1x2tq7N6HVd/M3zgKFTwh+g5xZ
5MlW98+uYhNIbDSqyf4CMys+5N4yBUfCIxelfduKnelxppGYMDQhadQboNqbZQjE
NsxRbbYKobn1vMPBoNzy7G4j8NpnnYjk/Vnr52WTP4QKDaXCofM2AE5aHkyUxYge
7x+E6EXOKtyj4ky0uMvwhAiBGY4fUlED3I+NiWxMajI0AZVJwA833ZbW+buE0TDA
gFaE1gwajl9EyrhWeraiSh7ZljnVc7YMdoTJt9nL8WVXPXpahzEn0EWKeiEkMvtN
QrtNnmgrtnVdNLKAaqFAnlxJzqGK9B5Horh7noDldugAuZNdtqw=
=tNgg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to