I tried to get the slide realm to work, but got the same problems as with our own realm with respect to the classloaders.
What we found out was that; - a realm cannot be in common/lib, since it subclasses BaseRealm, which lives in server/lib. - our principal impl cannot live in server/lib, since we want to classcast to it in our webapp when retrieved with request.getUserPrincipal(). The slide realm seems to have similar requirements. It wants to live in common/lib, since it needs to read Domain.xml. We solve the dependency on RealmBase by having a realm class in server/lib, that delegates to a utility class that lives in common/lib. I have tried to implement such a delegate realm for slide, and it's included here as an attachment (together with the modified sliderealm which doesn't subclass RealmBase.) I am unable to test it properly since it fails when it cannot find the Domain.xml file. I guess this is because I have not associated a specific container with my slide webapp. Any clues on how to resolve this? -- - Torgeir
SlideRealmDelegate.java
Description: application/unknown-content-type-javafile
SlideRealm.java
Description: application/unknown-content-type-javafile
