I did find out the problem soon after I  sent the mail-  The issues is that
my new class did not implement 'Component', and the exception was happening
when there was a type cast

(Component)MyNewRepository);

I began my new class by referring to UsersLDAPRepository(which doesn't
implement the  Component object)  and then used UsersFileRepository, and in
the process I missed the Component implementation.

Thanks for the help!
Sapna


----- Original Message ----- 
From: "Noel J. Bergman" <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 4:09 PM
Subject: RE: Can James work with a customized User list


> > I proceeded with a new class in org.apache.james.userrepository
> >(Similar to the UserFileRepository) , which implements the
UserRepository.
>
> > java.lang.ClassCastException
> > at
>
org.apache.james.core.AvalonUsersStore.initialize(AvalonUsersStore.java:170)
>
> > Looks like while AvalonUsersStore is trying to load the repositories,
> > it throws a ClassCast Exception at the line :
> > UsersRepository rep = (UsersRepository)
> theClassLoader.loadClass(repClass).newInstance();
>
> I'm just skimming, but if that is where you believe the problem to be, you
> could try displaying the object that you DO get back from newInstance().
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to