Hi,
I recently upgraded a working web application which utilises JDBCRealm to
Tomcat 10 however it stopped working. Further investigations found that JDBCRealm is now deprecated with Tomcat 10 therefore I have implemented DataSourceRealm.
The connection to the database using DataSourceRealm appears to be fine.
Now, however, when I attempt to log into the application using form authentication I am getting a server 408 response. Strangely, when I enter invalid credentials the invalid credentials page is being displayed.
I have performed a quick Google for a solution however the answers that I find don't seem to fix the issue.
I'm not sure why changing from JDBCRealm to DataSourceRealm would cause this issue however I'm hoping developers with more knowledge and experience than myself may be able to help me.
For info, here are the resource and realm tags from my context.xml file:
And here is my web.xml file:
I have left the server.xml file as default.
If you would like me to submit any more code then please let me know. Thanks