Can't really do that in a production environment :) On 10/17/05, Dittmann, Werner <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Gesendet: Sonntag, 16. Oktober 2005 17:29 > > An: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >
-- Davanum Srinivas : http://wso2.com/blogs/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
