<dependency>
<groupId>com.relayrides</groupId>
<artifactId>pushy</artifactId>
<version>0.7.3</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>1.1.33.Fork20</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.alpn</groupId>
<artifactId>alpn-api</artifactId>
<version>1.1.3.v20160715</version>
<scope>runtime</scope>
</dependency>
mvn clean install builds without error all tests pass and push notifications can be sent through unit tests.
When I try to deploy to tomcat (9.0.0.0.M9) I get the error:
Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.jni.SSLContext.getMode(J)I
at io.netty.handler.ssl.OpenSslContext.<init>(OpenSslContext.java:208)
at io.netty.handler.ssl.OpenSslContext.<init>(OpenSslContext.java:140)
at io.netty.handler.ssl.OpenSslClientContext.<init>(OpenSslClientContext.java:187)
at io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:746)
at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:395)
at com.relayrides.pushy.apns.ApnsClient.getSslContextWithCertificateAndPrivateKey(ApnsClient.java:394)
at com.relayrides.pushy.apns.ApnsClient.getSslContextWithP12InputStream(ApnsClient.java:388)
at com.relayrides.pushy.apns.ApnsClient.getSslContextWithP12File(ApnsClient.java:365)
at com.relayrides.pushy.apns.ApnsClient.<init>(ApnsClient.java:266)
at com.relayrides.pushy.apns.ApnsClient.<init>(ApnsClient.java:239)
I note this github issue, but it seems to relate to an older version - I have tried the fix none the less.
(MAVEN/SPRING/TOMCAT)
TIA.
Guy