2 Replies Latest reply on Oct 9, 2001 8:40 PM by dshsapp

    Who to use Tomcat's JDBCRealm with JBoss?

    alpo

      Hi,
      I'm new to JBoss and ask for assistance. I place JBoss to my Apache-Tomcat configuration. All is working. But here is my qyestion: I have users who use JSDK specs and don't want move to EJB specs. Before JBoss was installed on server they use Tomcat's JDBCRealm, but I cannot configure JDBCRealm for users of JSDK with JBoss. Then I try to login with the JDBCRealm authentication, I see in log that JDBCRealm works correctly:

      [EmbeddedTomcatSX] 2001-10-01 19:49:28 - ContextManager: JDBCRealm: Auth ok, first role=admin

      but next line states:
      [JBossSecurityMgrRealm] Warning: no security context available

      Please explain: is it possible to configure such authorization for Tomcat with JBoss? If it is possible, please explain here I'm wrong?

      Thank you,
      Alex

        • 1. Re: Who to use Tomcat's JDBCRealm with JBoss?
          ko5tik

          Yep. It's possible.

          hack on your jboss-web.xml and say there that:
          <security-domain>java:/jaas/<whatever you like it to be></security-domain>

          The JbossSecurityMgrRealm would cache your credentials and push them to jboss on every bean invocation.

          • 2. Re: Who to use Tomcat's JDBCRealm with JBoss?
            dshsapp

            Hi alpo how exactly did you use JDBCRealm with Jboss and Tomcat.
            In my case Jboss does connect to the database for the JDBCRealm, but I do not get the login window.
            I set it up as per the Tomcat documentation.
            Am I missing anything?

            thanks