I am trying to run an application that is working fine on Weblogic on Wildfly 26. I am expecting to be able to logon using our existing login.html, which performs a post against j_security_check, which I think is some kind of Java EE standard. However, I am unable to configure Wildfly in such a way as to accept POST requests to this endpoint. I always get an error:
HTTP method POST is not supported by this URL. I am using a jdbc-realm which I have called jdbcrealm.
Below are what I think the relevant sections from my current config:
web.xml:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>myappdomain</realm-name>
<form-login-config>
<form-login-page>/login.xhtml</form-login-page>
<form-error-page>/login.xhtml</form-error-page>
</form-login-config>
</login-config>
jboss--web.xml:
Snippets from standalone.xml:
<security-domain name="mydomain" default-realm="jdbcrealm">
<realm name="jdbcrealm"/>
</security-domain>
<subsystem xmlns="urn:jboss:domain:ejb3:9.0">
[cut]
<default-security-domain value="myappdomain"/>
<application-security-domains>
<application-security-domain name="myappdomain" security-domain="mydomain"/>
</application-security-domains>
<default-missing-method-permissions-deny-access value="true"/>
<statistics enabled="${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
<log-system-exceptions value="true"/>
</subsystem>
<http>
[cut]
<http-authentication-factory name="http-db-auth" security-domain="mydomain" http-server-mechanism-factory="global">
<mechanism-configuration>
<mechanism mechanism-name="FORM"/>
</mechanism-configuration>
</http-authentication-factory>
<provider-http-server-mechanism-factory name="global"/>
</http>
So far I have configured everything using the web interface,
Is anyone able to tell me what I am missing to get this working correctly? I have not been able to find out by reading the manual or using Google so far.