0
在我之前的項目中,我們使用jboss 7作爲應用程序服務器,而我的應用程序在jboss-web.xml中有如下所示的代碼。從JBOSS 7.1.1升級到Wildfly的問題8.2.1
<jboss-web>
<security-domain>my-form-auth</security-domain>
<context-root>webapps</context-root>
<valve>
<class-name>com.session.MyAuthenticaor</class-name>
</valve>
</jboss-web>
它工作的很好。但是目前我們升級到wildfly 8.2.1並且閥門沒有被請求任何請求。閥門用於定製認證。閥門代碼如下所示。
package com.session;
import java.io.IOException;
import org.apache.catalina.authenticator.FormAuthenticator;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.deploy.LoginConfig;
public class MyAuthenticaor extends FormAuthenticator{
public boolean authenticate(Request request, Response response,LoginConfig config) throws IOException {
//code for authentication
}
}
請幫我解決這個問題。