I am trying to write a client test class (not a servlet) that logs a user in using a custom Login Module (aping what they would do from a web page). However, I am getting problems trying to get hold of the security manager using JNDI when JBoss-2.4.4 is running in conjunction with Tomcat3.2.3 on Windows 2000 Professional.
javax.naming.NameNotFoundException: comp not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) at org.jnp.server.NamingServer.getObject(NamingServer.java:509) at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
I was wondering whether there are any test classes out there that accomplished this. Thanks in advance for any help.