« Return to Thread: [ANN] Nexus Crowd Plugin Released

RE: [ANN] Nexus Crowd Plugin Released

by justinedelson :: Rate this Message:

Reply to Author | View in Thread

I've released version 1.2 of the plugin which fixes this problem. The
wiki page has been updated to reflect this.

Thanks for catching this.

Justin

-----Original Message-----
From: boycook [mailto:craig.cook@...]
Sent: Wednesday, February 11, 2009 12:29 PM
To: nexus-dev@...
Subject: Re: [nexus-dev] [ANN] Nexus Crowd Plugin Released


Hi. I've downloaded and installed plugin as described here:

https://docs.sonatype.org/display/Nexus/Nexus+Crowd+Plugin

I've got it connecting to my version of crowd (I can see the auth
request/response in the crowd log, plus I've used the test link in the
documentation) but when nexus loads (using tomcat) I get this error
below:

java.lang.ClassCastException:
org.sonatype.nexus.plugins.crowd.client.CrowdRoleLocator cannot be cast
to org.sonatype.jsecurity.locators.users.PlexusUserLocator
        at
org.sonatype.jsecurity.locators.users.DefaultPlexusUserManager.getPrimar
yLocator(DefaultPlexusUserManager.java:113)
        at
org.sonatype.jsecurity.locators.users.DefaultPlexusUserManager.getUser(D
efaultPlexusUserManager.java:67)
        at
org.sonatype.jsecurity.locators.users.AdditinalRolePlexusUserManager.get
User(AdditinalRolePlexusUserManager.java:26)
        at
org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthoriza
tionInfo(AbstractXmlAuthorizingRealm.java:73)
        at
org.jsecurity.realm.AuthorizingRealm.getAuthorizationInfo(AuthorizingRea
lm.java:279)
        at
org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:3
60)
        at
org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:3
56)
        at
org.sonatype.jsecurity.web.WebPlexusSecurity.isPermitted(WebPlexusSecuri
ty.java:355)
        at
org.jsecurity.subject.DelegatingSubject.isPermitted(DelegatingSubject.ja
va:143)
        at
org.jsecurity.web.filter.authz.PermissionsAuthorizationFilter.isAccessAl
lowed(PermissionsAuthorizationFilter.java:45)
        at
org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFil
ter.isAccessAllowed(HttpVerbMappingAuthorizationFilter.java:106)
        at
org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFi
lter.java:145)
        at
org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter
.java:175)
        at
org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.jav
a:129)
        at
org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFi
lter.java:180)
        at
org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper
.java:57)
        at
org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:10
5)
        at
org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.jav
a:135)
        at
org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFi
lter.java:180)
        at
org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper
.java:57)
        at
org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilt
er.java:382)
        at
org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal
(NexusJSecurityFilter.java:63)
        at
org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFi
lter.java:180)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
5)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:637)

Does anyone have an idea of what could be wrong? It looks like it's
trying to cast the CrowdROLELocator to the PlexusUSERLocator.

Cheers,
Craig Cook


justinedelson wrote:
>
> After much delay, the Nexus Crowd plugin has reached it first public
> release. If you've built the plugin from source in the past, please
> read the installation instructions as the configuration model has
> changed dramatically. Configruation is now done through a
> configuration file in the sonatype-work/nexus/conf directory, rather
> than via Plexus. This will make it easier to upgrade in the future as
> well as support a UI-based configuration (vote for NEXUS-1410 if this
is important for you).

>  
> Documentation can be found here:
> https://docs.sonatype.org/display/Nexus/Nexus+Crowd+Plugin.
>  
> Thanks to everyone who helped me out over the past few months.
>  
> Justin Edelson
> VP, Applications & Platforms
> MTV Networks Digital
>
>

--
View this message in context:
http://www.nabble.com/-ANN--Nexus-Crowd-Plugin-Released-tp21783770p21958
279.html
Sent from the Nexus Maven Repository Manager Dev List mailing list
archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...

 « Return to Thread: [ANN] Nexus Crowd Plugin Released