You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by di...@multitask.com.au on 2003/01/04 13:49:42 UTC

Running NTLM tests under jdk 1.3

I've been trying to get the NTLM tests to run under JDK 1.3, but 
continually get the following:

    [junit] java.lang.ExceptionInInitializerError: 
java.lang.SecurityException: Cannot set up certs
for trusted CAs: java.lang.SecurityException: Cannot locate policy and/or 
framework files for signer
 restraint check!
    [junit]     at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
    [junit]     at javax.crypto.Cipher.a(DashoA6275)
    [junit]     at javax.crypto.Cipher.getInstance(DashoA6275)
    [junit]     at 
org.apache.commons.httpclient.NTLM.getCipher(NTLM.java:150)
    [junit]     at 
org.apache.commons.httpclient.NTLM.encrypt(NTLM.java:192)
    [junit]     at 
org.apache.commons.httpclient.NTLM.hashPassword(NTLM.java:475)
    [junit]     at 
org.apache.commons.httpclient.NTLM.getType3Message(NTLM.java:431)
    [junit]     at 
org.apache.commons.httpclient.NTLM.getResponseFor(NTLM.java:142)
    [junit]     at 
org.apache.commons.httpclient.Authenticator.ntlm(Authenticator.java:392)

The project.xml I'm using is in CVS.

I've updated $JAVA_HOME/jre/lib/java.security to have the following:

# DG HACK
security.provider.1=com.sun.crypto.provider.SunJCE
security.provider.2=sun.security.provider.Sun
security.provider.3=com.sun.rsajca.Provider
# DG HACK
security.provider.4=com.sun.net.ssl.internal.ssl.Provider

Andy ideas?

All compiles ok, but wont pass tests on JDK 1.3.1_06.

1.4 is fine...
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au