Anders,

OSGi allows for multiple versions of the same package to be active,
but it does not allow a single bundle to 'see' both version at the
same time.  In your case, you have both the 2.5.6.SEC01 and 3.0.x
version of spring-core in the same classloader hierarchy.  According
to the information I find on the Spring LDAP website however, it
should be compatible with Spring 3.0.x as well so it's probably best
to get in touch with the Spring LDAP team to fix the version range on
the imports (because the range now excludes version 3.0.0 and above)
or build your own bundle for Spring LDAP that does have the right
metadata.

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Wed, Jun 15, 2011 at 10:48 AM, Anders <[email protected]> wrote:
> Hi
>
> I'm trying to use camel spring security with ldap authentication. I have
> run:
>
> features:install camel-spring-security
>
> and then, to get ldap auth(n/z):
>
> osgi:install -s
> mvn:org.springframework.security/org.springframework.security.ldap/3.0.4.RELEASE
>
> which requires:
>
> osgi:install -s
> mvn:org.springframework.ldap/org.springframework.ldap/1.3.0.RELEASE
>
> which in turn requires:
>
> osgi:install -s
> mvn:org.springframework/org.springframework.beans/2.5.6.SEC02
> osgi:install -s mvn:org.springframework/org.springframework.core/2.5.6.SEC02
> osgi:install -s
> mvn:org.springframework/org.springframework.transactions/2.5.6.SEC02
>
> Having installed all these, the org.springframework.security.ldap module
> cannot be resolved as there are two dependency chains:
>
> Error executing command: Unable to resolve module
> org.springframework.security.ldap [239.0] because it is exposed to package
> 'org.springframework.util' from org.springframework.core [56.0] and
> org.springframework.core [237.0] via two dependency chains.
>
> Chain 1:
>  org.springframework.security.ldap [239.0]
>    import:
> (&(package=org.springframework.util)(version>=3.0.3.RELEASE)(!(version>=3.1.0)))
>     |
>    export: package=org.springframework.util
>  org.springframework.core [56.0]
>
> Chain 2:
>  org.springframework.security.ldap [239.0]
>    import:
> (&(package=org.springframework.ldap)(version>=1.3.0)(!(version>=1.4.0)))
>     |
>    export: package=org.springframework.ldap; uses:=org.springframework.core
>  org.springframework.ldap [235.0]
>    import:
> (&(package=org.springframework.core)(version>=2.5.6.SEC01)(!(version>=3.0.0)))
>     |
>    export: package=org.springframework.core; uses:=org.springframework.util
>    export: package=org.springframework.util
>  org.springframework.core [237.0]
>
> I'm rather new and a couple hours googling have not helped me find a fix.
>
> Best regards
> Anders
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Two-dependency-chains-ldap-auth-in-camel-spring-security-tp4490548p4490548.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to