There are extra native files regarding to the openssl module in EAP7.1.0.Beta RPM distribution. We expect to have only neccessary natives for particular installed platform present. All others should be excluded from RPM package.
Here is the list for x86_64 platform:
modules/system/layers/base/org/wildfly/openssl/main/lib/linux-i386 modules/system/layers/base/org/wildfly/openssl/main/lib/win-i386 modules/system/layers/base/org/wildfly/openssl/main/lib/win-x86_64 modules/system/layers/base/org/wildfly/openssl/main/lib/win-i386/wfssl.dll modules/system/layers/base/org/wildfly/openssl/main/lib/win-x86_64/wfssl.dll
Similarly for i386 platform:
modules/system/layers/base/org/wildfly/openssl/main/lib/linux-x86_64 modules/system/layers/base/org/wildfly/openssl/main/lib/win-i386 modules/system/layers/base/org/wildfly/openssl/main/lib/win-x86_64 modules/system/layers/base/org/wildfly/openssl/main/lib/win-i386/wfssl.dll modules/system/layers/base/org/wildfly/openssl/main/lib/win-x86_64/wfssl.dll
It seems that directories and solaris/windows natives are installed by eap7-wildfly-modules package, whereas correct rhel library is installed by eap7-wildfly-openssl-linux package. Also note that directory for the correct rhel library is registered as installed by both of those packages:
# rpm -qf /opt/rh/eap7/root/usr/share/wildfly/modules/system/layers/base/org/wildfly/openssl/main/lib/linux-i386 eap7-wildfly-modules-7.1.0-38.Beta1_redhat_5.1.ep7.el6.noarch # rpm -qf /opt/rh/eap7/root/usr/share/wildfly/modules/system/layers/base/org/wildfly/openssl/main/lib/linux-x86_64 eap7-wildfly-openssl-linux-1.0.0-11.CR3_redhat_2.1.ep7.el6.x86_64 eap7-wildfly-modules-7.1.0-38.Beta1_redhat_5.1.ep7.el6.noarch # rpm -qf /opt/rh/eap7/root/usr/share/wildfly/modules/system/layers/base/org/wildfly/openssl/main/lib/linux-x86_64/libwfssl.so eap7-wildfly-openssl-linux-1.0.0-11.CR3_redhat_2.1.ep7.el6.x86_64 # rpm -qf /opt/rh/eap7/root/usr/share/wildfly/modules/system/layers/base/org/wildfly/openssl/main/lib/win-i386 eap7-wildfly-modules-7.1.0-38.Beta1_redhat_5.1.ep7.el6.noarch # rpm -qf /opt/rh/eap7/root/usr/share/wildfly/modules/system/layers/base/org/wildfly/openssl/main/lib/win-x86_64 eap7-wildfly-modules-7.1.0-38.Beta1_redhat_5.1.ep7.el6.noarch # rpm -qf /opt/rh/eap7/root/usr/share/wildfly/modules/system/layers/base/org/wildfly/openssl/main/lib/win-x86_64/wfssl.dll eap7-wildfly-modules-7.1.0-38.Beta1_redhat_5.1.ep7.el6.noarch