You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yuval Levav <yu...@mobilitec.com> on 2002/03/20 13:50:06 UTC

tomcat 4.0.3 configuration

Hi,
	In my app I use a URL /xxx/servlet/YYY.txt. As you can see, YYY is not a
servlet.
	In web.xml I added a servlet mapping of *.txt to a certain servlet. In
tomcat 3 the mapping worked,
	but tomcat 4 sees YYY as a servlet and tries to activate it.
	How can I configure tomcat not to consider every URL that has /servlet as a
servlet, and go to the mapping instead ?
Thanks,
	Yuval


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: extends JDBCRealm

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 20 Mar 2002, Günter Kukies wrote:

> Date: Wed, 20 Mar 2002 14:06:00 +0100
> From: Günter Kukies <Gu...@heuft.org>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: extends JDBCRealm
>
> Hello,
>
> I want to write a new MyRealm class that extend from JDBCRealm. The new
> class should do a BASE64 password protection.
> The compilation of the class was sucessfull.
>

Of course, you can do this with the standard version, by using the
"digest" property on the <Realm> element ...

> Where should I place that class and what entries do I need in the
> server.xml.
>

To be visible to the Tomcat internals, your class needs to be in one of
two places:

* In an unpacked directory $CATALINA_HOME/server/classes (create it if
  you need), with subdirectories to mirror the package structure in the
  usual way

* In a JAR file in $CATALINA_HOME/server/lib (which is how all the
  standard Tomcat server classes are shipped)

To tell Tomcat to use your realm implementation, simply change the
"className" attribute of the <Realm> element to the fully qualified class
name of your own implementation, instead of
"org.apache.catalina.realm.JDBCRealm".

> Günter

Craig


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


extends JDBCRealm

Posted by Günter Kukies <Gu...@heuft.org>.
Hello,

I want to write a new MyRealm class that extend from JDBCRealm. The new
class should do a BASE64 password protection.
The compilation of the class was sucessfull.

Where should I place that class and what entries do I need in the
server.xml.

Günter


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>