Hi,

>My LoginModule class must be in common/lib or in application's
>classpath. It uses classes that are (normally) in server/lib (all the
>Catalina classes).
>
>How do you make that work without copying the Catalina's jars from
>server/lib to common/lib, what I would like to avoid?

The classes in common/lib, shared/lib, and WEB-INF/lib cannot see the
classes in server/lib (a.k.a the Catalina classloader repository in the
Classloader How-To document).  So you must copy or move your classes
around.

Note, however, that according to the same document the classes in
server/lib *can* see and use classes in common/lib.  So you might be
able to plugin something the other way from your current design.

>> I am getting a null pointer when I ask for service.  Also if I do
>> server.findServices() to get a list of all of them I get nothing
back.
>>  This is from withing a Servlet to test getting these objects.

That's strange.  I typed the code from memory and haven't actually used
it in a long time (it used to work, but I hate having container-specific
code in my apps, so I don't do it any more).  Maybe someone else can
correct my code or explain why you're getting a null service.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to