I follow Custom Database Integration Guide to Authentication Integration
I have edit the wildfire.xml
but when i login the admin console, it throw UnsupportedOperationException
java.lang.UnsupportedOperationException
at org.jivesoftware.wildfire.auth.JDBCAuthProvider.getPassword(JDBCAuthProvider.ja va:165)
at org.jivesoftware.wildfire.auth.JDBCAuthProvider.authenticate(JDBCAuthProvider.j ava:103)
at org.jivesoftware.wildfire.auth.AuthFactory.authenticate(AuthFactory.java:127)
at org.jivesoftware.wildfire.admin.login_jsp._jspService(login_jsp.java:134)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
…
…
JDBCAuthProvider.java 165:
public String getPassword(String username) throws UserNotFoundException,
UnsupportedOperationException
{
if (!supportsPasswordRetrieval()) {
throw new UnsupportedOperationException();
}
…
}
this method throw exception
public boolean supportsPasswordRetrieval() {
System.out.println(passwordSQL);
System.out.println(passwordType);
return (passwordSQL != null && passwordType == PasswordType.plain);
}
it print passwordSQL is null
please help me thanks