www.securityfilter.org

OK: And I may be way of base: I just checked the source forge cvs,
haven't downloaded or installed anything, so my 2c is probably not worth
much, but ...

To me it seems that they wrote their own extension to catalina, 

package org.securityfilter.realm.catalina;
<snip>
public class CatalinaRealmAdapter implements SecurityRealmInterface {
<snip>

So, in my own private way of thinking, I would assume that you are not
actually extending any of the base Tomcat classes, but one of their
classes. This would lead me to believe that you need to publish the
security filter classes as part of your web application to be able to
successfully a. use them, b. customise the realm.

So: question: Have you tried added the securityfilter classes to 
$CATALINA_HOME/webapps/YourWebApp/WEB-INF/classes
or 
$CATALINA_HOME/common/lib
depending on what format they are?

But, like I said: I haven't installed it, nor do I understand it, it's
just my 2c.

hth
Paul





On Sat, 2003-03-22 at 17:52, Carl Maib wrote:
> the problem is not tomcat recognizing my class, it is tomcat recognizing one
> of its own classes called out from my web application.
> 
> i have tried various things to put catalina.jar in common/lib or shared/lib
> with no success. besides, this doesn't seem right anyway. but, when it is
> late and you get desparate, you'll try anything!
> 
> ----- Original Message -----
> From: "p niemandt" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, March 22, 2003 12:54 PM
> Subject: RE: custom JDBCRealm
> 
> 
> > Have you tried $CATALINA_HOME/webapps/YourWebApp/WEB-INF/classes ?
> >
> > On Sat, 2003-03-22 at 17:40, Carl Maib wrote:
> > > bill,
> > > i have tried placing my source in common/classes, common/lib, shared/lib
> and shared/classes with no luck. depending on where i put my class, it was
> either in a Jar as part of a package, or just a stand-alone class.
> > >
> > > i am really baffled here, it seems like one of those solutions should
> have worked. yet, i continue to get the NoClassDefFound error for the
> catalina class i am overriding (FormAuthenticator).
> > >
> > > i know i am a newbie to tomcat, so perhaps i am missing something
> simple. if anyone has had any luck overriding any of the catalina classes in
> their webapp and has had some success actually running it, please lend a
> hand!
> > >
> > > thanks!
> > >
> > > "Bill Barker" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > > >
> > > > "Carl Maib" <[EMAIL PROTECTED]> wrote in message
> > > > news:[EMAIL PROTECTED]
> > > > > i am attempting the exact same thing, but have been advised it would
> be
> > > > > better to override the FormAuthenticator. this gives you direct
> access to
> > > > > the session.
> > > > >
> > > > > the solution seems perfect, however, i i can't seem to get past
> > > > > classNotFound exceptions. i am not familiar with how to link
> catalina
> > > > > classes and the Class Loader docs are not giving me the answer.
> > > > >
> > > > > i have configured server.xml to contain my custom valve, the class
> which
> > > > > overrides FormAuthenticator. i have placed this class in
> common/classes. i
> > > > > get class not found exceptions on FormAuthenticator bcz my webapp is
> not
> > > > > able to reference the necessary objects in catalina.jar.
> > > >
> > > > It needs to be in server/classes, so that it can see the Catalina
> classes.
> > > >
> > > > >
> > > > > please let me know if you get this solution to work. thanks!
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "awc" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > > Sent: Friday, March 21, 2003 4:41 PM
> > > > > Subject: Custom JDBCRealm
> > > > >
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I want to add more stuff to user session while user logs in. The
> only
> > > > > > way I see to do this is to write custom JDBCRealm class which
> extnds
> > > > > > org.apache.catalina.realm.JDBCRealm or implement
> > > > > > org.apache.catalina.realm.RealmBase class.
> > > > > >
> > > > > > This custom class will have more initializing parameters too. Any
> > > > > > thoughts on this from one who already did sort of thing??
> > > > > >
> > > > > > I am going to use this one with securityFilere from
> > > > > > www.securityfilter.org.
> > > > > >
> > > > > > Thank you in advance for any replies.
> > > > > >
> > > > > > .anil
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > > 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]
> > > >
> > --
> > p niemandt <[EMAIL PROTECTED]>
> >
> >
> > ---------------------------------------------------------------------
> > 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]
-- 
p niemandt <[EMAIL PROTECTED]>


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

Reply via email to