Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WSAD & java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

91 views
Skip to first unread message

Brian Seery

unread,
Oct 11, 2002, 6:31:58 AM10/11/02
to
Hi,

I am getting a problem using jce1.2.2. Basically I have properties
file were I want to store a password encrypted and decrypt it at
runtime. I have managed to get a Test Harness working with jdk1.3.1
and also the default JRE that comes bundled with WSAD (WebSphere
Application Developer) and it works fine from the command line.

I then try and call the same code from my local WebSphere Server
running in the WSAD environment and I get a
java.security.NoSuchAlgorithmException: Cannot find any provider
supporting DES/ECB/PKCS5Padding

I know the WebSphere Application Server was using the
WSAD/HOME/plugins/com.ibm.etools.server.jdk.jre/

I updated java.security file for this jre to include
com.sun.crypto.provider.SunJCE

I am guess could there be a conflict between the IBM jce and Sun as
also in the jre/lib/ext is the following

ibmjcefw.jar & ibmjceprovider.jar

so I removed them and WAS would not start. To avoid confusion I
uninstalled the ibm server jre so believing my local copy of WebSphere
had to use the default jre that comes with WSAD?

Any help appreciated......


Thanks


Brian

Peter Kunze

unread,
Oct 14, 2002, 10:21:21 AM10/14/02
to
Brian Seery wrote:
>
> Hi,
>
> I am getting a problem using jce1.2.2. Basically I have properties
> file were I want to store a password encrypted and decrypt it at
> runtime. I have managed to get a Test Harness working with jdk1.3.1
in the API: 'Cipher since jdk 1.4.'

> java.security.NoSuchAlgorithmException: Cannot find any provider
> supporting DES/ECB/PKCS5Padding

I use:
Provider sunJCE = new com.sun.crypto.provider.SunJCE();
Security.addProvider(sunJCE);
and then I can work with "DES"( same as "DES/ECB/PKCS5Padding" )

> I updated java.security file for this jre to include
> com.sun.crypto.provider.SunJCE
>
> I am guess could there be a conflict between the IBM jce and Sun as
> also in the jre/lib/ext is the following

I don't know, soory.

> Thanks
>
> Brian
greetings Peter

Brian Seery

unread,
Oct 16, 2002, 1:32:44 PM10/16/02
to
Peter Kunze <Peter...@eas.iis.fhg.de> wrote in message news:<3DAAD2E1...@eas.iis.fhg.de>...

> Brian Seery wrote:
> >
> > Hi,
> >
> > I am getting a problem using jce1.2.2. Basically I have properties
> > file were I want to store a password encrypted and decrypt it at
> > runtime. I have managed to get a Test Harness working with jdk1.3.1
> in the API: 'Cipher since jdk 1.4.'
>
> > java.security.NoSuchAlgorithmException: Cannot find any provider
> > supporting DES/ECB/PKCS5Padding
> I use:
> Provider sunJCE = new com.sun.crypto.provider.SunJCE();
> Security.addProvider(sunJCE);
> and then I can work with "DES"( same as "DES/ECB/PKCS5Padding" )
>
> > I updated java.security file for this jre to include
> > com.sun.crypto.provider.SunJCE
Peter,

Thanks for the tip, I had actually tried before I read your mail and it works fine.

Thanks Again

Brian

0 new messages