Christopher, > Gesendet: Freitag, 05. September 2014 um 22:23 Uhr > Von: "Christopher Schultz" <ch...@christopherschultz.net> > An: "Tomcat Users List" <users@tomcat.apache.org> > Betreff: Re: java.lang.UnsatisfiedLinkError in Tomcat 8.0.11 and SPDY [broken > tcnative 1.1.x?] > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Konstantin, > > On 9/4/14 6:20 PM, Konstantin Kolinko wrote: > > 2014-09-04 20:06 GMT+04:00 <rolandl...@web.de>: > >> Hello, I have this error configuring SPDY in Tomcat 8.0.11 in > >> RHEL Linux 6.4 (64bit). > >> > >> Everything works fine removing npnHandler attribute for SPDY. > >> > >> Sep 04, 2014 9:30:02 AM > >> org.apache.catalina.core.AprLifecycleListener init INFO: Loaded > >> APR based Apache Tomcat Native library 1.1.31 using APR version > >> 1.3.9. Sep 04, 2014 9:30:02 AM > >> org.apache.catalina.core.AprLifecycleListener init INFO: APR > >> capabilities: IPv6 [true], sendfile [true], accept filters > >> [false], random [true]. .. Sep 04, 2014 9:30:55 AM > >> org.apache.coyote.AbstractProtocol start INFO: Starting > >> ProtocolHandler ["http-apr-xx.xx.xx.xx-443"] > >> java.lang.UnsatisfiedLinkError: > >> org.apache.tomcat.jni.SSLExt.setNPN(J[BI)I at > >> org.apache.tomcat.jni.SSLExt.setNPN(Native Method) > > > > Your copy of Tomcat-Native library was compiled without NPN > > support and does not have the above method. > > It appears that the 1.1 branch of tcnative doesn't have any of the > SSLExt.java/sslext.c methods at all: src/sslext.c does not even exist. > > It looks like this was added in the trunk but nobody ever bothered to > back-port it to the 1.1 branch (which is of course what everybody > actually uses). It also looks like there are a bunch of functions that > are defined when HAVE_OPENSSL is defined, but have no definition > otherwise. This means that those other methods would end up throwing > UnsatisfiedLinkError if they are called. They all have to do with SSL > and therefore make no sense being called under those conditions, but > it's always nice to have a method exist when the Java code expects it > to exist ;) > > The obvious solution is to back-port src/sslext.c to the 1.1 branch > but I'd like someone who was involved in working on that stuff > (Costin; markt only made whitespace changes to make checkstyle happy) > to comment before I do it. > > Roland, would you be willing to patch your tcnative source and re-try? > The patch should be trivial (new file). > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > > iQIcBAEBCAAGBQJUChu2AAoJEBzwKT+lPKRYdjUP/0hGzwOyg58oJT/oo3uExEYN > jUokpssQIu0e5bXfldErHFZD6q1Dm50Fg8EmONTDEBqaE5UbKEsQ/bi676X2OLA7 > a1/9zUQyxQ0ZFkYX0yexI2mVzRWJclDj0pT3f2kvW3LR5hALO37yMyDaAjiSpDoB > gEW2yqKEa2Cor6/X6/l92zg30iXcy1LyOCo3JBS30YRyRoKrXACx5aQz+2DyQ9UD > SUSgLvq42urEVzOp7eyx0juQ2wjg1s3+rS4YqkGJxh+aQ2zqVglOIzmoA8xB2TiN > dwrMdsYNkysPCHPI9rWm1SlZZiRG4Rge83u23Gq0mi/PZbuxeI4ggfa4cghbKpKd > nQypwuLenwAp7Y/zTNaTbWShcHOedM2cw5TsBoQFndilrHYYt9xu/nu62cHddkqB > qTCTm9PIrWRgJT8SilOqs3RetIeoa3+pBGct6bnKFDthsENxE7bQtfQtDiWil9va > 36czpUPtAShz6e63I0AKLptSZR+jj5SIiH/ZnIoHMCL8pzqq/ELaofrB1tYI/eah > 36rJ1I00tvfiob8dZ0p5mAuPzK5kr3WwXNW8IkeyYO09hneEfChLfoC3pD+z5G48 > 5hYmPsHK2gxdSEMeokFa86D56Mbpo6pwwSEj0yhMqE9QT4X2nhob0BMJ/nB8GWeQ > uJqotCJsSf2xZsjCTufa > =75Ok > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
I recompiled tcnative several times, and I looked for a configure option related to NPN, but I couldn't find it. Yes, of course I want to apply the patch and re-try. Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org