0 Replies Latest reply on Jan 25, 2002 4:33 AM by Mark

    Test Login

    Mark Newbie

      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.

      Object ref = jndiContext.lookup("java:comp/env/security");

      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.

      Cheers,

      Mark