On Fri, 8 Nov 2002, [EMAIL PROTECTED] wrote:

> Date: Fri,  8 Nov 2002 11:47:32 -0500
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Shutting down and restarting Tomcat
>
> I am trying to create a custom jdbc realm.  I create a class that
> extends org.apache.catalina.realm.JDBCRealm.  When I start up my server,
> I get a class not found exception on my new realm class.
>
> How am I supposed to set my paths to see the realm class I created?
> when I add the class to my classpath directly, then the server can't
> find org.apache.catalina.realm.JDBCRealm.
>

Tomcat ignores the system classpath totally.  You'll need to put your
custom Realm implementation in a directory where Catalina internals can
see it -- specifically, in $CATALINA_HOME/server/classes or in a JAR file
in $CATALINA_HOME/server/lib.

For more info, see the class loader docs:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


If you're using 4.1, you'll also want to disable the MBean support because
it won't recognize your custom Realm class.  You can do this by commenting
out the two <Listener> elements at the top of server.xml.

> Thanks,
> Eric
>

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to