[prev in list] [next in list] [prev in thread] [next in thread]
List: wss4j-dev
Subject: Re: svn commit: r322484 - /webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java
From: Davanum Srinivas <davanum () gmail ! com>
Date: 2005-10-17 16:54:23
Message-ID: 19e0530f0510170954y39a4c8bfn8f03214fab61a70e () mail ! gmail ! com
[Download RAW message or body]
Can't really do that in a production environment :)
On 10/17/05, Dittmann, Werner <werner.dittmann@siemens.com> wrote:
> All,
>
> just some more info on this topic as found in the BC
> mailing list where one BC user reported such a problem:
>
> <quote>
> Looking at the stack trace it looks like the BC provider might have been
> installed at position 1. It needs to be added on the end of the provider
> list. Some of the internal Sun code makes assumptions about which provider
> it is talking to.
> </quote>
>
> Of course there is a solution :-) : during some tests I made I just moved _all_
> of the Sun security stuff (jce.jar and sunjce_provider.jar) into a
> directoty that is not on the classpath (explicit or implicit). Then I used
> the full BC jar (containing JCE provider and security provider).
>
> Regards,
> Werner
>
> > -----Ursprüngliche Nachricht-----
> > Von: dims@apache.org [mailto:dims@apache.org]
> > Gesendet: Sonntag, 16. Oktober 2005 17:29
> > An: wss4j-cvs@ws.apache.org
> > Betreff: svn commit: r322484 -
> > /webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java
> >
> >
> > Author: dims
> > Date: Sun Oct 16 08:29:07 2005
> > New Revision: 322484
> >
> > URL: http://svn.apache.org/viewcvs?rev=322484&view=rev
> > Log:
> > BC can't be the first..."ant clean test" fails in jdk14 and
> > jdk15. See url's below for more info.
> >
> > http://lists.apple.com/archives/Java-dev/2004/Apr/msg00557.html
> > http://forum.java.sun.com/thread.jspa?forumID=60&messageID=166
> 2855&threadID=386531
>
>
> Modified:
> webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java
>
> Modified: webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java
> URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java?rev=322484&r1=322483&r2=322484&view=diff
> ==============================================================================
> --- webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java (original)
> +++ webservices/wss4j/trunk/src/org/apache/ws/security/WSSConfig.java Sun Oct 16 \
> 08:29:07 2005 @@ -236,8 +236,12 @@
> log.debug("The provider " + id
> + " had to be added to the java.security.Security");
> }
> + int pos = 1;
> + if(id.equalsIgnoreCase("BC")) {
> + pos = 2;
> + }
> java.security.Security.insertProviderAt((java.security.Provider) c
> - .newInstance(), 1);
> + .newInstance(), pos);
> }
> return true;
> } catch (Throwable t) {
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic