Richard__Harlan
Jan 31, 2006Historic F5 Account
(401)Authorization Required with JAVA
Starting to work on a new Java site to interface with the BigIP. Everything we try to run it we get a 401 error back. The user is and passowrd are fine. It just will not work. Attach are some code snips. Any help would be great. Thanks
(0) Application Error
**Message 1**:
com.deere.u90.iaf.deployment.exceptions.ApplicationException: com.deere.u90.iaf.deployment.exceptions.ApplicationException: No 'Active' BigIP server found.
endPoint URLs and states follows:[no endPoints]
**Message 2**:
com.deere.u90.iaf.deployment.exceptions.ApplicationException: org.apache.axis.AxisFault: Exception attempting to determine 'Active' BigIP server.
Current endpointURLs = https://[userid]:[password]@bigip.com:443/iControl/iControlPortal.cgi
**Message 3**:
(401)Authorization Required
public BigIPHelper(String nodeName, String userAuthID) {
super();
this.userAuthID = userAuthID;
userID = Application.GetInstance().getConnectionManagerConfigurationView().getString(JDBC_USERID + ApplicationProperties.GetConnectionManagerPropertySfx());
password = Application.GetInstance().getConnectionManagerConfigurationView().getString(JDBC_PASSWORD + ApplicationProperties.GetConnectionManagerPropertySfx());
XTrustProvider.install();
String bigIPEnvironment = determineBigIPEnvironment(nodeName);
String[] endPointURLs = buildBigIPEndPointURLs(bigIPEnvironment);
endPointURL = determinePrimaryBigIPServer(endPointURLs);
establishBindings();
}
private void establishBindings() {
try {
virtualServerBinding = (iControl.LocalLBVirtualServerBindingStub) new iControl.LocalLBVirtualServerLocator().getLocalLBVirtualServerPort(new java.net.URL(endPointURL));
virtualServerBinding.setTimeout(60000);
poolBinding = (iControl.LocalLBPoolBindingStub) new iControl.LocalLBPoolLocator().getLocalLBPoolPort(new java.net.URL(endPointURL));
poolBinding.setTimeout(60000);
nodeAddressBinding = (iControl.LocalLBNodeAddressBindingStub) new iControl.LocalLBNodeAddressLocator().getLocalLBNodeAddressPort(new java.net.URL(endPointURL));
nodeAddressBinding.setTimeout(60000);
}
catch (Throwable t) {
throw new ApplicationException(0, "Exception encountered while establishing BigIP web service bindings.\nendPonitURL = " + endPointURL.replaceAll(password, "[password]"), t);
}
}