I am trying to connect to a url from a servlet using Java .net.authenticator for providing the credentials
to connect to the url but everytime I try to connect i get 401 unauthorised error.
The code inside the authenticator is never called.It seems that Weblogic is overridding this and preventing the authenticator to behave
as it should be.
Is there any particular setting in weblogic which will help resolve this or any work round available.
Below is the code I am using