Aw: Re: java.lang.UnsatisfiedLinkError in Tomcat 8.0.11 and SPDY [broken tcnative 1.1.x?]

2014-09-06 Thread rolandlevy
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



Re: java.lang.UnsatisfiedLinkError in Tomcat 8.0.11 and SPDY [broken tcnative 1.1.x?]

2014-09-05 Thread Christopher Schultz
-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



java.lang.UnsatisfiedLinkError in Tomcat 8.0.11 and SPDY

2014-09-04 Thread rolandlevy
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)
at org.apache.tomcat.jni.SSLExt.setNPN(SSLExt.java:126)
at 
org.apache.coyote.spdy.SpdyAprNpnHandler.init(SpdyAprNpnHandler.java:76)
at 
org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:211)
at 
org.apache.catalina.connector.Connector.startInternal(Connector.java:986)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:458)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:760)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:625)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
Sep 04, 2014 9:30:55 AM org.apache.coyote.spdy.SpdyAprNpnHandler init
WARNING: SPDY/NPN not supported

Machine info:

Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux xx.com 2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 
x86_64 x86_64 x86_64 GNU/Linux

Java version:

java version 1.7.0_51
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)


server.xml configuration

Connector port=443
 address=xx.xx.xx.xx
 npnHandler=org.apache.coyote.spdy.SpdyAprNpnHandler
 protocol=HTTP/1.1
 SSLEnabled=true
 maxThreads=150
 scheme=https
 secure=true
 sslProtocol=TLS
 SSLCertificateFile=/xx 
 SSLCertificateKeyFile=/xx
 SSLCACertificateFile=/xx/ 

Thanks in advance,

R.Levy

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



Re: java.lang.UnsatisfiedLinkError in Tomcat 8.0.11 and SPDY

2014-09-04 Thread Konstantin Kolinko
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.

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