java.security.NoSuchAlgorithmException
Hi ,
I am trying to use SHA-256 Hashing Encryption Algorithm in my program. When i call the program through a simple java call it works fine.
But when i m calling the same program on a Server it gives me this java.security.NoSuchAlgorithmException.
Aapparently i found this entry security.provider.1=sun.security.provider.Sun in my java.security file.
This provider is being used during the java Call
However on the Server when i do Security.getProvider("SUN") it simply says "missing provider". Can anyone suggest anything.
By Server i mean IBM WASD 5.0
Thanking in advance,
Regards,
[641 byte] By [
Vallabha] at [2007-11-26 13:35:28]

# 2
I see the following lines printed on my startup of WASD
WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 3612
Host Operating System is Windows 2003, version 5.2
Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
user.install.root = d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
Java Home = d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre
ws.ext.dirs = d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/lib;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/ext;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/web/help;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;c:\j2sdk1.4.2_05\jre\lib\rt.jar;y:\vcs\lib\hibernate3\hibernate313.jar;u:\vcs\javasource\thirdpartyjar\dom4j-1.6.jar;U:\VCS\javasource\thirdpartyjar\commons-logging-1.0.4.jar;U:\VCS\javasource\thirdpartyjar\asm.jar;U:\VCS\javasource\thirdpartyjar\antlr-2.7.5H3.jar;U:\VCS\javasource\thirdpartyjar\cglib-2.1.jar;U:\VCS\javasource\thirdpartyjar\ehcache-1.1.jar;U:\VCS\javasource\thirdpartyjar\xerces-2.6.2.jar;U:\VCS\javasource\thirdpartyjar\xml-apis.jar;U:\VCS\javasource\thirdpartyjar\c3p0-0.8.5.2.jar;U:\VCS\javasource\thirdpartyjar\concurrent-1.3.2.jar;U:\VCS\javasource\thirdpartyjar\oscache-2.1.jar;U:\VCS\javasource\thirdpartyjar\castor-0.9.9-xml.jar;U:\VCS\javasource\thirdpartyjar\junit.jar;D:\WSAD2.1\workspace\PropertyFile;D:\WSAD2.1\workspace\FCRJEntity;D:\WSAD2.1\workspace\FCRJInfra;D:\WSAD2.1\workspace\FCRJCommon;D:\WSAD2.1\workspace\FCRJChannelsProc;D:\WSAD2.1\workspace\FCRJChannelsBH;D:\WSAD2.1\workspace\FCRJAPP;D:\WSAD2.1\workspace\FCRJAPPZ\bin;D:\WSAD2.1\workspace\FCRJEntityZ\bin;d:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
Classpath = d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/bootstrap.jar;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/j2ee.jar;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/lmproxy.jar;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/urlprotocols.jar;U:\VCS\javasource\thirdpartyjar\commons-pool-1.2.jar;U:\VCS\javasource\thirdpartyjar\log4j.jar;U:\VCS\javasource\thirdpartyjar\commons-file-upload.jar;U:\VCS\javasource\thirdpartyjar\commons-collections-3.1.jar;U:\VCS\javasource\thirdpartyjar\ojdbc14.jar;d:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;d:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
Java Library path = d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/bin;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/bin;d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/jre/bin;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;.;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;D:\Flexcube\exe;C:\j2sdk1.4.2_05\bin;C:\j2sdk1.4.2_05\jre\lib;D:\Program Files\IBM\WebSphere MQ\bin;D:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin;D:\Program Files\IBM\WebSphere MQ\Java\lib;D:\product\10.1.3.1\OracleAS_1\jdk\bin;D:\product\10.1.3.1\OracleAS_1\ant\bin;D:\oracle\product\10.2.0\client_1\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program C:\j2sdk1.4.2_05\bin;C:\j2sdk1.4.2_05\jre\lib;D:\Program Files\IBM\WebSphere MQ\bin;D:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin;D:\Program Files\IBM\WebSphere MQ\Java\lib;D:\oracle\product\10.2.0\client_1\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Vallabh\apache-ant-1.6.5\bootstrap\bin;D:\product\10.1.3.1\OracleAS_1\MOBILE\sdk\bin;D:\product\10.1.3.1\OracleAS_1\jdk\bin;D:\product\10.1.3.1\OracleAS_1\ant\bin;D:\product\10.1.3.1\OracleAS_3\jdk\bin;D:\product\10.1.3.1\OracleAS_3\ant\bin;D:\product\10.1.3.1\OracleAS_3\bin;
I guess its reading some different java.security somewhere in my path
D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre\lib\security
But then i m trying to override teh same using java -Djava.security.properties .ont he startup of wASD. still its giving me the same error