RE: Another Question About Tomcat Auth

2002-02-15 Thread Luke Studley

Renato

I get this as well. I may be wrong but I found that the Realm base class is
package protected so you have to have your extension in the same package.
This is a bit of a pain, it also means I could only get it to work by
placing my realm code and any dependents directly  in the server/lib
directory - it doesn't work from common. Then all my other common stuff
excluding realms goes in the common/lib dir.

Hope that helps

Luke

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]] 
Sent: 15 February 2002 09:50
To: Tomcat Users List
Subject: R: Another Question About Tomcat Auth

OK!!I just made a little step: i tried to put the classes in the common dir,
but Tomcat can't start, giving me a ClassNotFoundException on JDBCRealm. In
fact my Realm implementation is an extension of JDBCRealm, and the Common
ClassLoader can't find it, because it is a parent of the Catalina
ClassLoader. One solution i think would be to put also catalina.jar (where
JDBCRealm is) in the common/lib dir, but it doesn't seems to be a great idea
:-(((
Suggestions ?
Thanks again

Renato

-Messaggio originale-
Da: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Inviato: giovedi 14 febbraio 2002 18.24
A: Tomcat Users List; [EMAIL PROTECTED]
Oggetto: Re: Another Question About Tomcat Auth




On Thu, 14 Feb 2002, Renato Romano wrote:

 Date: Thu, 14 Feb 2002 16:50:52 +0100
 From: Renato Romano [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Another Question About Tomcat Auth

 I succeffully defined my own Realm Implementation, but for have it working
i
 had to put the classes into the $CATALINA_HOME/server/classes dir. Since I
 also use those classes in my webapp, I also had to put them in
 webapps/myapp/WEB-INF/classes !! Of course I tried to put the classes in
the
 common/classes dir, but it doesn't works. Any idea ?
 Thanks again


If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

  http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

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

 Renato


Craig



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Another Question About Tomcat Auth

2002-02-15 Thread Micael Padraig Og mac Grene

When I put jar files in $TOMCAT_HOME/common/lib they work fine for running 
Catalina, but they do not work for javac on my own classes, so I have had 
to put the actual classes into 
$TOMCAT_HOME/webapps/myapp/WEB-INF/classes/.  Is there a reason why the 
common/lib directory does not work for javac?  The app can see the javac 
command, but cannot see the classes in common/lib/whatever.jar.

Micael



If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

   http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

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

  Renato
 

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Another Question About Tomcat Auth

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Renato Romano wrote:

 Date: Thu, 14 Feb 2002 16:50:52 +0100
 From: Renato Romano [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Another Question About Tomcat Auth

 I succeffully defined my own Realm Implementation, but for have it working i
 had to put the classes into the $CATALINA_HOME/server/classes dir. Since I
 also use those classes in my webapp, I also had to put them in
 webapps/myapp/WEB-INF/classes !! Of course I tried to put the classes in the
 common/classes dir, but it doesn't works. Any idea ?
 Thanks again


If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

  http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

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

 Renato


Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]