tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Forbis <>
Subject Where to place classes
Date Thu, 14 Oct 2004 19:54:52 GMT
I am having a problem as where to place classes.

I have a CustomJDBCRealm  (it extends JDBC realm)

I need this to be setup in the context of my application like any
other realm.  If I place my jar in server\lib it works.


If I do this the MyPrincipal object can not be refrenced from my web

If I place this jar in my webapp lib or in the common\lib the realm
can not find JDBCRealm that is extends from on startup so it fails.

I am a little lost as to the correct place to put this...

I have a CustomJDBCRealm extends JDBCRealm  (it does an getEmailAddress)
I have an interface MyPrincipalInterface extends
I have a class MyPrincipal implements MyPrincipalInterface

The JDBCRealm gived back a MyPrincipal for its principal...  and my
servlet code then does this to get at it

MyPrincipalInterface p =
    String emailAddress = p.getEmailAddress();

As I see it that is all should work except the common\lib as I
understood it was suppose to work for ALL web applications as well as
ALL server side items, but ti does not seem to.

(For refrence most my test has come from the Tomcat Wiki at

I am lost...


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message