You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Jean-Baptiste Lièvremont <je...@eads.net> on 2004/04/19 15:06:45 UTC

Exception when launching Tomcat

Hi,

I have the following trace in catalina.out while launching Tomcat:

java.lang.NoClassDefFoundError: org/apache/catalina/realm/RealmBase
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
...

I'm using Tomcat 5.0.19, JDK 1.4.2_03 on a RedHat SMP, with 
slide-2.0rc1. Actually, I'm trying to use authentication with the 
wrappers.catalina.SlideRealm realm. So I put it in my server.xml,  
uncommented in slide/WEB-INF/web.xml the lines designated in the doc and 
created the corresponding roles and users im tomcat-users.xml.

Has anybody tested Slide authentication in Tomcat 5.* ? Thanks in 
advance for your answears.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Exception when launching Tomcat

Posted by Oliver Zeigermann <oz...@c1-fse.de>.
Jean-Baptiste Lièvremont wrote:
> It seems that it is a Tomcat-related problem, actually I think that it 
> does not load the .jar files in the right order.
> 
> What I am trying to do is use Slide with the built-in authentication. As 
> I already had a Tomcat (5.0.19), I only downloaded the .tar.gz bundle 
> with the server and the commandline client. It works fine without 
> authentication - except I can not access to the directories whose access 
> is rectricted to root (users, roles, etc.).
> 
> At first I just uncommented the indicated lines in slide/WEB-INF/web.xml 
> and added the roles and users to $CATALINA_HOME/common/lib. All I got 
> was a beautiful 'HTTP 401' error, with my Mozilla browser, the WebDAV 
> client in OpenOffice and the Slide command-line client.
> 
> So I did as it was written in the doc: I put the 
> slide-catalinawrapper.jar into $CATALINA_HOME/common/lib and modified 
> the default security realm in $CATALINA_HOME/conf/server.xml. At that 
> point I just could not restart my server for it did not find some classes.

What doc?

> My question is, what is the RIGHT method to make Slide's authentication 
> work ? And maybe this should be put clearly in the documentation, at 
> least as an FAQ...

The right method is to run tomcat-4-install resp. tomcat-5-install 
target in the build.xml if you have downloaded the src release. If you 
want to use binary stuff download one of the Tomcat bundles.

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Exception when launching Tomcat

Posted by Jean-Baptiste Lièvremont <je...@eads.net>.
It seems that it is a Tomcat-related problem, actually I think that it 
does not load the .jar files in the right order.

What I am trying to do is use Slide with the built-in authentication. As 
I already had a Tomcat (5.0.19), I only downloaded the .tar.gz bundle 
with the server and the commandline client. It works fine without 
authentication - except I can not access to the directories whose access 
is rectricted to root (users, roles, etc.).

At first I just uncommented the indicated lines in slide/WEB-INF/web.xml 
and added the roles and users to $CATALINA_HOME/common/lib. All I got 
was a beautiful 'HTTP 401' error, with my Mozilla browser, the WebDAV 
client in OpenOffice and the Slide command-line client.

So I did as it was written in the doc: I put the 
slide-catalinawrapper.jar into $CATALINA_HOME/common/lib and modified 
the default security realm in $CATALINA_HOME/conf/server.xml. At that 
point I just could not restart my server for it did not find some classes.

My question is, what is the RIGHT method to make Slide's authentication 
work ? And maybe this should be put clearly in the documentation, at 
least as an FAQ...

Regards

Oliver Zeigermann wrote:

> Hmmmm, while I am not quite sure what you intend to do the exception 
> tells you it does not find class RealmBase which SlideRealm tries to 
> inherit from upon loading. Please give more details.
>
> Oliver
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Exception when launching Tomcat

Posted by Oliver Zeigermann <oz...@c1-fse.de>.
Hmmmm, while I am not quite sure what you intend to do the exception 
tells you it does not find class RealmBase which SlideRealm tries to 
inherit from upon loading. Please give more details.

Oliver

Jean-Baptiste Lièvremont wrote:

> Hi,
> 
> I have the following trace in catalina.out while launching Tomcat:
> 
> java.lang.NoClassDefFoundError: org/apache/catalina/realm/RealmBase
>    at java.lang.ClassLoader.defineClass0(Native Method)
>    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>    at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>    at java.security.AccessController.doPrivileged(Native Method)
>    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> ...
> 
> I'm using Tomcat 5.0.19, JDK 1.4.2_03 on a RedHat SMP, with 
> slide-2.0rc1. Actually, I'm trying to use authentication with the 
> wrappers.catalina.SlideRealm realm. So I put it in my server.xml,  
> uncommented in slide/WEB-INF/web.xml the lines designated in the doc and 
> created the corresponding roles and users im tomcat-users.xml.
> 
> Has anybody tested Slide authentication in Tomcat 5.* ? Thanks in 
> advance for your answears.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> .
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Exception when launching Tomcat

Posted by Jacob Lund <jl...@qualiware.net>.
Try to move your slide jar's into the common/lib directory - it worked for
me!

/jacob

----- Original Message ----- 
From: "Jean-Baptiste Lièvremont" <je...@eads.net>
To: <sl...@jakarta.apache.org>
Sent: Monday, April 19, 2004 3:06 PM
Subject: Exception when launching Tomcat


> Hi,
>
> I have the following trace in catalina.out while launching Tomcat:
>
> java.lang.NoClassDefFoundError: org/apache/catalina/realm/RealmBase
>     at java.lang.ClassLoader.defineClass0(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>     at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> ...
>
> I'm using Tomcat 5.0.19, JDK 1.4.2_03 on a RedHat SMP, with
> slide-2.0rc1. Actually, I'm trying to use authentication with the
> wrappers.catalina.SlideRealm realm. So I put it in my server.xml,
> uncommented in slide/WEB-INF/web.xml the lines designated in the doc and
> created the corresponding roles and users im tomcat-users.xml.
>
> Has anybody tested Slide authentication in Tomcat 5.* ? Thanks in
> advance for your answears.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org