Ahoj,
mam problem s IBM JDK na AIX. Mam napsanou aplikaci pres RMI a pokud ji spustim na AIX serveru, tak mi vrati ze není implementovan MessageDigest SHA.
kterou pouziva asi vnitrne RMI při serializaci a deserializaci objektu. Chyba výjimky je nasledujici:
java.lang.SecurityException: SHA MessageDigest not available
at sun.rmi.server.Util.computeMethodHash(Util.java:378)
at sun.rmi.server.UnicastServerRef$HashToMethod_Maps.createMap(UnicastServerRef.java:544)
at sun.rmi.server.WeakClassHashMap.getMap(WeakClassHashMap.java:71)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:196)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:107)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:93)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:198)
at cz.skoda.sqvisual.RMIServer.main(RMIServer.java:168)
Pod Oracle SDK na Windows mi to jede, protoze sun provider je pritomen, pod IBM SDK na Win take, ale na AIXu ne :(
File:java.security na AIXu
-------------------------------
#
# List of providers and their preference orders (see above):
#
security.provider.1=com.ibm.jsse2.IBMJSSEProvider2
security.provider.2=com.ibm.crypto.provider.IBMJCE
security.provider.3=com.ibm.security.jgss.IBMJGSSProvider
security.provider.4=com.ibm.security.cert.IBMCertPath
security.provider.5=com.ibm.security.sasl.IBMSASL
File:java.security na WIN - IBM SDK
--------------------------------------------
#
# List of providers and their preference orders (see above):
#
#security.provider.1=com.ibm.crypto.fips.provider.IBMJCEFIPS
security.provider.1=com.ibm.crypto.pkcs11impl.provider.IBMPKCS11Impl
security.provider.2=com.ibm.crypto.provider.IBMJCE
security.provider.3=com.ibm.jsse.IBMJSSEProvider
security.provider.4=com.ibm.jsse2.IBMJSSEProvider2
security.provider.5=com.ibm.security.jgss.IBMJGSSProvider
security.provider.6=com.ibm.security.cert.IBMCertPath
security.provider.7=com.ibm.security.cmskeystore.CMSProvider
security.provider.8=com.ibm.security.jgss.mech.spnego.IBMSPNEGO
security.provider.9=com.ibm.security.sasl.IBMSASL
security.provider.10=com.ibm.xml.crypto.IBMXMLCryptoProvider
security.provider.11=com.ibm.xml.enc.IBMXMLEncProvider
security.provider.12=org.apache.harmony.security.provider.PolicyProvider
File:java.security na WIN - ORACLE SDK
------------------------------------------------
#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
security.provider.2=sun.security.rsa.SunRsaSign
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
security.provider.6=com.sun.security.sasl.Provider
security.provider.7=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.8=sun.security.smartcardio.SunPCSC
security.provider.9=sun.security.mscapi.SunMSCAPI
Nevim , jak donutit IBM javu na AIXu, aby pripadne pouzil jiny alogoritmus (treba BouncyCastle).
Zda staci jen upravit prislusny soubor java.security a nahrat provider do jre/lib/ext nebo zda musim neco nastavit v kodu?
Poradite ?
Jirka