|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Error when using SimpleRealmI want to create a custom security realm for my instance of nexus, and have been looking at your SimpleRealm example here: https://docs.sonatype.com/display/NX/Security%20Example And having got the code here: http://svn.sonatype.org/nexus/trunk/nexus/nexus-test-harness/nexus-simple-memory-realm/ I’m using your war distribution (1.2.1) and put the compiled jar file for the SimpleRealm in my WEB-INF/lib folder. I’ve added the config mentioned to my nexus.xml and security.xml to tell nexus about the realm. The problem is that when I start nexus I get the below error. Can you please help: this realm = plexus.core this strategy = org.codehaus.plexus.classworlds.strategy.ForeignStrategy Number of imports: 0 ----------------------------------------------------- 2009-02-05 17:50:28,885 ERROR [org.sonatype.jsecurity.locators.RealmLocator:default] - Unable to lookup security realms org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.jsecurity.realm.Realm [Simple] (lookup realm: ClassRealm[plexus.core, parent: null]). role: org.jsecurity.realm.Realm roleHint: Simple classRealm: plexus.core at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:139) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:484) at org.sonatype.nexus.jsecurity.locators.NexusRealmLocator.getRealms(NexusRealmLocator.java:40) at org.sonatype.jsecurity.selectors.DefaultRealmSelector.selectAllRealms(DefaultRealmSelector.java:32) at org.sonatype.jsecurity.web.WebPlexusSecurity.getRealms(WebPlexusSecurity.java:209) at org.jsecurity.mgt.RealmSecurityManager.applyCacheManagerToRealms(RealmSecurityManager.java:117) at org.jsecurity.mgt.RealmSecurityManager.setRealms(RealmSecurityManager.java:81) at org.jsecurity.mgt.AuthenticatingSecurityManager.setRealms(AuthenticatingSecurityManager.java:148) at org.jsecurity.mgt.AuthorizingSecurityManager.setRealms(AuthorizingSecurityManager.java:128) at org.jsecurity.mgt.RealmSecurityManager.setRealm(RealmSecurityManager.java:65) at org.sonatype.jsecurity.web.WebPlexusSecurity.initialize(WebPlexusSecurity.java:484) Cheers, Craig Cook | Business Technology Consultant | BT Design:DSO | E-mail craig.cook@... | Web: craigcook.co.uk boycook.com |
|
|
Re: Error when using SimpleRealmThe example out on the wiki uses the trunk (1.3) of nexus. There were a few interface changes between 1.2 and 1.3 as far as security goes. I am assuming the loading of the component failed because of that. Try it out on the trunk. Sorry for the late response, -toby On Feb 5, 2009, at 1:00 PM, Craig Cook wrote:
|
|
|
Re: Error when using SimpleRealmCheers, Craig Cook | Business Technology Consultant | BT Design:DSO | Tel: +44 (0)2078 095 948 | Ext: 6505948 | Mob: +44 (0)7918 880 501 | E-mail craig.cook@... | Web: craigcook.co.uk boycook.com From: Toby Stevens <tstevens@...> Reply-To: <nexus-dev@...> Date: Wed, 11 Feb 2009 16:29:34 -0500 To: <nexus-dev@...> Subject: Re: [nexus-dev] Error when using SimpleRealm The example out on the wiki uses the trunk (1.3) of nexus. There were a few interface changes between 1.2 and 1.3 as far as security goes. I am assuming the loading of the component failed because of that. Try it out on the trunk. Sorry for the late response, -toby On Feb 5, 2009, at 1:00 PM, Craig Cook wrote: Hi, |
| Free embeddable forum powered by Nabble | Forum Help |