I recently upgraded my project from JBoss 7.4 and Java 1.8 to JBoss 8/8.1 and Java 21. The project originally used a login module inside the WAR that worked with PicketBox on JBoss 7.4. With PicketBox being deprecated, I implemented a JAAS-based security realm, extracting the login logic into a separate JBoss module and referencing it from the WAR.
However, the login module contains essential code for initializing the project, which requires the JAR to be deployed both in the JBoss module and the EAR every time.
I would like to know if there is a way to embed the login module directly inside the WAR again, or if deploying it separately as a JBoss module is the only feasible solution in JBoss 8/8.1?
Any advice or insights on how to achieve this would be greatly appreciated.