]
Darran Lofthouse updated WFLY-13320:
------------------------------------
Component/s: Security
(was: Web (Undertow))
Wildfly-openssl can not load library wfssl on RHEL6
---------------------------------------------------
Key: WFLY-13320
URL:
https://issues.redhat.com/browse/WFLY-13320
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Tomas Terem
Assignee: Flavia Rainone
Priority: Critical
Labels: regression
Using OpenSSL on RHEL6 cuases UnsatisfiedLinkError when loading the wfssl library.
{code:java}
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start
service org.wildfly.core.management.security.realm.ApplicationRealm.ssl-context:
org.jboss.msc.service.StartException in service
org.wildfly.core.management.security.realm.ApplicationRealm.ssl-context: WFLYDM0018:
Unable to start service
at
org.jboss.as.domain.management.security.SSLContextService.start(SSLContextService.java:116)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation
(algorithm: openssl.TLS, provider: openssl, class:
org.wildfly.openssl.OpenSSLContextSPI$OpenSSLTLSContextSpi)
at java.security.Provider$Service.newInstance(Provider.java:1617)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
at
org.jboss.as.domain.management.security.SSLContextService.start(SSLContextService.java:105)
... 8 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.wildfly.openssl.SSL.init(SSL.java:87)
at org.wildfly.openssl.OpenSSLContextSPI.<init>(OpenSSLContextSPI.java:129)
at
org.wildfly.openssl.OpenSSLContextSPI$OpenSSLTLSContextSpi.<init>(OpenSSLContextSPI.java:463)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.security.Provider$Service.newInstance(Provider.java:1595)
... 12 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wildfly.openssl.SSL.init(SSL.java:82)
... 19 more
Caused by: java.lang.UnsatisfiedLinkError: no wfssl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1871)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1124)
at org.wildfly.openssl.SSL$LibraryLoader.load(SSL.java:288)
... 24 more
{code}
The issue was fixed by
https://github.com/wildfly-security/wildfly-openssl/commit/dfaa7596a040fb...
since version 1.0.9.SP03 of wildfly-openssl.
However Wildfly 19.0.0.Final uses WildFly Core 11.0.0.Final which uses wildfly-openssl
1.0.9.Final without a fix. (current Wildfly Core master uses wildfly-openssl 1.0.10.Final
where the fix is present)