tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43214] Calls to Embedded.setRealm(Realm) fails
Date Thu, 01 May 2008 22:57:12 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43214


Mark Thomas <markt@apache.org> changed:

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




--- Comment #1 from Mark Thomas <markt@apache.org>  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
Container.getName()


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message