Please help, I searched the whole Internet and nothing helped. In short: When I try with overriding the Authenticator like (http://docs.oracle.com/javase/7/docs/technotes/guides/net/http-auth.html example):
static class MyAuthenticator extends Authenticator {
@Override
public PasswordAuthentication getPasswordAuthentication() {
// I haven't checked getRequestingScheme() here, since for NTLM
// and Negotiate, the usrname and password are all the same.
System.err.println("Feeding username and password for " + getRequestingScheme());
return (new PasswordAuthentication(username, password.toCharArray()));
}
It works from NetBeans but not when I put that standalone app on weblogic server. It just does not continue the NTML auth. When I look with wireshark i just see the start of ntml negotiation and then it stops. I tried all other custom libraries like jcifs, but i can't make it work. Anybody?