File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Custom JAAS Login Module Deployment Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Custom JAAS Login Module Deployment Question" Watch "Custom JAAS Login Module Deployment Question" New topic

Custom JAAS Login Module Deployment Question

Jeff McIlvain

Joined: Jan 24, 2001
Posts: 17
We recently deployed a web application on WAS. The web app was purchased from a vendor. As part of the implementation we needed to integrate the web app with eDirectory LDAP services. In order accomplish that integration we developed a custom JAAS login module. We ended up using the vendor supplied Principal class in our JAAS module.

Our JAAS module is deployed to a shared library within WAS. When we first deployed the JAAS module we were getting NoClassDefFoundError. In order to resolved the issue we cracked open the web app EAR, extracted the JAR containing the vendor supplied Principal class, and deployed that JAR to the shared library.

My question is... Why did we have to deploy the vendor JAR to the shared library to make it work? Why couldn't it find the class in the JAR file that was deployed with the web app? Could we have done this differently without cracking open the EAR, extracting the JAR, and placing it in a shared library?

I agree. Here's the link:
subject: Custom JAAS Login Module Deployment Question
It's not a secret anymore!