Re: [xwiki-users] java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

2011-01-06 Thread Mike
According to GlassFish:

Java vm vendor: Sun Microsystems Inc. Java vm name = Java HotSpot(TM) Client
VM Java vm version = 17.0-b16

According to a plain java app:

Java vm vendor: Sun Microsystems Inc. Java vm name = Java HotSpot(TM) Client
VM Java vm version = 17.0-b16

I've found that javax.crypto lives in jce.jar, which I've plastered all over
my server's classpaths, and put into the Xwiki war's WEB-INF/lib but to no
avail: I still get the same result.

Call me confused.

On Thu, Jan 6, 2011 at 10:40 PM, Sergiu Dumitriu  wrote:

> On 01/07/2011 05:27 AM, Mike wrote:
> > I ran this in groovy:
> >
> >
> println(javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding").getProvider().toString()
> > + "\n" +
> >
> javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding").getProvider().getClass().getName());
> >
> > and got this:
> >
> > SunJCE version 1.6
> > com.sun.crypto.provider.SunJCE
> >
> > So I wrote a little java program that did the same thing, and got the
> same
> > result.
> >
> > Then, I wrote a little web app and deployed it on my server, and I got
> the
> > result that Xwiki is giving me.
> >
> > So, obviously something is lacking from my server's classpath.  However,
> I'm
> > not smart enough to track down exactly what it is that is missing -- I
> don't
> > know how to find out from where a given class is being resolved.
>
> Can you run this in your server:
>
> System.out.println(System.getProperty("java.vm.vendor") + " " +
> System.getProperty("java.vm.name") + " " +
> System.getProperty("java.vm.version"));
>
>
> > A clue for the clueless would be gratefully received.
> >
> > Many thanks.
> >
> > Regards,
> > Mike
> > On Thu, Jan 6, 2011 at 8:04 PM, Caleb James DeLisle<
> > calebdeli...@lavabit.com>  wrote:
> >
> >> println(javax.crypto.Cipher.getProvider().toString() + "\n" +
> >> javax.crypto.Cipher.getProvider().getClass().getName());
> >>
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

2011-01-06 Thread Sergiu Dumitriu
On 01/07/2011 05:27 AM, Mike wrote:
> I ran this in groovy:
>
> println(javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding").getProvider().toString()
> + "\n" +
> javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding").getProvider().getClass().getName());
>
> and got this:
>
> SunJCE version 1.6
> com.sun.crypto.provider.SunJCE
>
> So I wrote a little java program that did the same thing, and got the same
> result.
>
> Then, I wrote a little web app and deployed it on my server, and I got the
> result that Xwiki is giving me.
>
> So, obviously something is lacking from my server's classpath.  However, I'm
> not smart enough to track down exactly what it is that is missing -- I don't
> know how to find out from where a given class is being resolved.

Can you run this in your server:

System.out.println(System.getProperty("java.vm.vendor") + " " + 
System.getProperty("java.vm.name") + " " + 
System.getProperty("java.vm.version"));


> A clue for the clueless would be gratefully received.
>
> Many thanks.
>
> Regards,
> Mike
> On Thu, Jan 6, 2011 at 8:04 PM, Caleb James DeLisle<
> calebdeli...@lavabit.com>  wrote:
>
>> println(javax.crypto.Cipher.getProvider().toString() + "\n" +
>> javax.crypto.Cipher.getProvider().getClass().getName());
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

2011-01-06 Thread Mike
I ran this in groovy:

println(javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding").getProvider().toString()
+ "\n" +
javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding").getProvider().getClass().getName());

and got this:

SunJCE version 1.6
com.sun.crypto.provider.SunJCE

So I wrote a little java program that did the same thing, and got the same
result.

Then, I wrote a little web app and deployed it on my server, and I got the
result that Xwiki is giving me.

So, obviously something is lacking from my server's classpath.  However, I'm
not smart enough to track down exactly what it is that is missing -- I don't
know how to find out from where a given class is being resolved.

A clue for the clueless would be gratefully received.

Many thanks.

Regards,
Mike
On Thu, Jan 6, 2011 at 8:04 PM, Caleb James DeLisle <
calebdeli...@lavabit.com> wrote:

> println(javax.crypto.Cipher.getProvider().toString() + "\n" +
> javax.crypto.Cipher.getProvider().getClass().getName());
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

2011-01-06 Thread Caleb James DeLisle
It sounds like your platform is missing a cryptography provider.
Can you run this for me and tell me the output please?

{{groovy}}println(javax.crypto.Cipher.getProvider().toString() + "\n" +
javax.crypto.Cipher.getProvider().getClass().getName());{{/groovy}}

FYI: I opened an issue for switching to a cipher which is included in 
bouncycastle which is shipped
with xwiki.
http://jira.xwiki.org/jira/browse/XWIKI-5863

Caleb


On 01/06/2011 10:35 AM, Mike wrote:
> There's a good idea.
> 
> I'm running Windows XP with Sun Java 6 Update 22.
> 
> On Thu, Jan 6, 2011 at 1:07 AM, Paul Libbrecht  wrote:
> 
>> I won't be able to answer your question but it would help to indicate which
>> JVM and which OS your are using.
>>
>> paul
>>
>>
>> Le 6 janv. 2011 à 01:21, Mike a écrit :
>>
>>> I've deployed Xwiki enterprise 2.7 on my Glassfish 2.1.1 server with
>> MySQL
>>> as the  back-end.
>>>
>>> I can create a user, but when I try to log in to that user, I am rewarded
>>> with the stack dump shown below.  It's trying to find a provider
>>> of DES/ECB/PKCS5Padding.
>>>
>>> After about 30 minutes on Google and on Java.sun.com, I don't seem to be
>>> able to find where I can get this provider.
>>>
>>> Could some kind soul please give me some hints on where to look to
>> download
>>> this?
>>>
>>> Thanks.
>>>
>>> Regards,
>>>
>>> Mike
>>> 2011-01-05 18:17:04,890 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
>> ]
>>> ERROR xwiki.MyPersistentLoginManager  - ERROR!!
>>> 2011-01-05 18:17:04,890 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
>> ]
>>> ERROR xwiki.MyPersistentLoginManager  - There was a problem encrypting
>> the
>>> username or password!!
>>> 2011-01-05 18:17:04,890 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
>> ]
>>> ERROR xwiki.MyPersistentLoginManager  - Remember Me function will be
>>> disabled!!
>>> 2011-01-05 18:17:05,046 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
>> ]
>>> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
>>> [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login...@28,33
>>> 2011-01-05 18:17:05,140 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/view/Main/DocumentDoesNotExist
>> ]
>>> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
>>> [com.xpn.xwiki.api.XWiki.parseMessage] in @18,8
>>> 2011-01-05 18:17:53,640 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2Flocalhost%3A8080%2Fxwiki%2Denterprise%2Dweb%2D2.7%2Fbin%2Fregister%2FXWiki%2FRegister
>> ]
>>> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
>>> [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login...@28,33
>>> 2011-01-05 18:17:57,734 [
>>>
>> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
>> ]
>>> ERROR xwiki.MyPersistentLoginManager  - Failed to encrypt text: miken
>>> java.security.NoSuchAlgorithmException: Cannot find any provider
>> supporting
>>> DES/ECB/PKCS5Padding
>>>at javax.crypto.Cipher.getInstance(DashoA13*..)
>>>at
>>>
>> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager.encryptText(MyPersistentLoginManager.java:391)
>>>at
>>>
>> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager.rememberLogin(MyPersistentLoginManager.java:188)
>>>at
>>>
>> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:221)
>>>at
>>>
>> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:187)
>>>at
>>>
>> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:243)
>>>at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4125)
>>>at
>>>
>> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:169)
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

2011-01-06 Thread Mike
There's a good idea.

I'm running Windows XP with Sun Java 6 Update 22.

On Thu, Jan 6, 2011 at 1:07 AM, Paul Libbrecht  wrote:

> I won't be able to answer your question but it would help to indicate which
> JVM and which OS your are using.
>
> paul
>
>
> Le 6 janv. 2011 à 01:21, Mike a écrit :
>
> > I've deployed Xwiki enterprise 2.7 on my Glassfish 2.1.1 server with
> MySQL
> > as the  back-end.
> >
> > I can create a user, but when I try to log in to that user, I am rewarded
> > with the stack dump shown below.  It's trying to find a provider
> > of DES/ECB/PKCS5Padding.
> >
> > After about 30 minutes on Google and on Java.sun.com, I don't seem to be
> > able to find where I can get this provider.
> >
> > Could some kind soul please give me some hints on where to look to
> download
> > this?
> >
> > Thanks.
> >
> > Regards,
> >
> > Mike
> > 2011-01-05 18:17:04,890 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
> ]
> > ERROR xwiki.MyPersistentLoginManager  - ERROR!!
> > 2011-01-05 18:17:04,890 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
> ]
> > ERROR xwiki.MyPersistentLoginManager  - There was a problem encrypting
> the
> > username or password!!
> > 2011-01-05 18:17:04,890 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
> ]
> > ERROR xwiki.MyPersistentLoginManager  - Remember Me function will be
> > disabled!!
> > 2011-01-05 18:17:05,046 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
> ]
> > WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> > [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login...@28,33
> > 2011-01-05 18:17:05,140 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/view/Main/DocumentDoesNotExist
> ]
> > WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> > [com.xpn.xwiki.api.XWiki.parseMessage] in @18,8
> > 2011-01-05 18:17:53,640 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2Flocalhost%3A8080%2Fxwiki%2Denterprise%2Dweb%2D2.7%2Fbin%2Fregister%2FXWiki%2FRegister
> ]
> > WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> > [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login...@28,33
> > 2011-01-05 18:17:57,734 [
> >
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin
> ]
> > ERROR xwiki.MyPersistentLoginManager  - Failed to encrypt text: miken
> > java.security.NoSuchAlgorithmException: Cannot find any provider
> supporting
> > DES/ECB/PKCS5Padding
> >at javax.crypto.Cipher.getInstance(DashoA13*..)
> >at
> >
> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager.encryptText(MyPersistentLoginManager.java:391)
> >at
> >
> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager.rememberLogin(MyPersistentLoginManager.java:188)
> >at
> >
> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:221)
> >at
> >
> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:187)
> >at
> >
> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:243)
> >at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4125)
> >at
> >
> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:169)
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding

2011-01-05 Thread Paul Libbrecht
I won't be able to answer your question but it would help to indicate which JVM 
and which OS your are using.

paul


Le 6 janv. 2011 à 01:21, Mike a écrit :

> I've deployed Xwiki enterprise 2.7 on my Glassfish 2.1.1 server with MySQL
> as the  back-end.
> 
> I can create a user, but when I try to log in to that user, I am rewarded
> with the stack dump shown below.  It's trying to find a provider
> of DES/ECB/PKCS5Padding.
> 
> After about 30 minutes on Google and on Java.sun.com, I don't seem to be
> able to find where I can get this provider.
> 
> Could some kind soul please give me some hints on where to look to download
> this?
> 
> Thanks.
> 
> Regards,
> 
> Mike
> 2011-01-05 18:17:04,890 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin]
> ERROR xwiki.MyPersistentLoginManager  - ERROR!!
> 2011-01-05 18:17:04,890 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin]
> ERROR xwiki.MyPersistentLoginManager  - There was a problem encrypting the
> username or password!!
> 2011-01-05 18:17:04,890 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin]
> ERROR xwiki.MyPersistentLoginManager  - Remember Me function will be
> disabled!!
> 2011-01-05 18:17:05,046 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin]
> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login...@28,33
> 2011-01-05 18:17:05,140 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/view/Main/DocumentDoesNotExist]
> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.api.XWiki.parseMessage] in @18,8
> 2011-01-05 18:17:53,640 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2Flocalhost%3A8080%2Fxwiki%2Denterprise%2Dweb%2D2.7%2Fbin%2Fregister%2FXWiki%2FRegister]
> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/login...@28,33
> 2011-01-05 18:17:57,734 [
> http://localhost:8080/xwiki-enterprise-web-2.7/bin/loginsubmit/XWiki/XWikiLogin]
> ERROR xwiki.MyPersistentLoginManager  - Failed to encrypt text: miken
> java.security.NoSuchAlgorithmException: Cannot find any provider supporting
> DES/ECB/PKCS5Padding
>at javax.crypto.Cipher.getInstance(DashoA13*..)
>at
> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager.encryptText(MyPersistentLoginManager.java:391)
>at
> com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager.rememberLogin(MyPersistentLoginManager.java:188)
>at
> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:221)
>at
> com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:187)
>at
> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:243)
>at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4125)
>at
> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:169)
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users