I have created a Custom Login Module and trying to access MBeans using JConsole(Remote) authenticated from LoginModule. I am using Tomcat server and Login Module jar file is present in classpath. It is throwing Exception - java.lang.SecurityException: Authentication failed! unable to find LoginModule. If I place the Login Module jar in jre/lib/ext it works fine. Is there anyway I can have it working placed in Tomcat only and not in jre/lib/ext folder?