Secure Rest service with LDAP reuslt in ClassNotFoundException for org.eclipse.jetty.security.MappedLoginService.RolePrincipal
Issue
I have an use case where a bundle class loader tried to load a public inner static class but got ClassNotFoundException:
java.lang.ClassNotFoundException: org.eclipse.jetty.security.MappedLoginService.RolePrincipal not found by myservice-bundle [266]
All the package wiring were fine as the package "org.eclipse.jetty.security" was exported by the jetty server bundle and my service-bundle had dynamic import package switched on.
The class RolePrincipal in question is a public inner static class defined in the org.eclipse.jetty.security.MappedLoginService class.
Here was what I have tried to configure in my blueprint.xml file:
<bean id="myLoginService" class="org.eclipse.jetty.plus.jaas.JAASLoginService">
<property name="name" value=“xxxxx"/>
<property name="loginModuleName" value=“myLdapLoginModule"/>
<property name="roleClassNames">
<list>
<value>org.eclipse.jetty.security.MappedLoginService.RolePrincipal</value>
</list>
</property>
</bean>
Environment
- JBoss Fuse
- 6.1
- 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.