tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 43214] Calls to Embedded.setRealm(Realm) fails
Date Thu, 01 May 2008 22:57:12 GMT

Mark Thomas <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Mark Thomas <>  2008-05-01 15:57:12 PST ---
This looks to be as designed to me. You have updated the default Realm after
you create the engine. You need to do things the other way around.

embeddedCatalina.setRealm() sets the default realm for new components. You
don't need to set the appName - it should be set as a result of the call to
engine.setRealm() in Embedded.createEngine()

You could also create your Realm and add it directly to the new Engine.

As far as I can tell from reading the code, adding a JAASRealm to any container
will result in the JAASRealm taking on the name of the container as returned by

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message