Tomcat 5.0.28
843842Feb 28 2005 — edited Feb 28 2005Hi,
I'm trying to install an existing Application on Tomcat 5.
The Application connects to a LDAP-Server, and therefore uses a <Realm> which refers to a custom class. This custom class extends the Tomcat-class "org.apache.catalina.realm.JNDIRealm", which is placed in "catalina.jar". Compilation / deployment seem to be OK:
On server startup the JAR's from "common/lib" are loaded:
- - - - - - - - - - - - - - - - - - - - - - - -
repositories:
file:E:\home\jakarta-tomcat-5.0.28\server\classes\
file:E:\home\jakarta-tomcat-5.0.28\server\lib\catalina.jar
- - - - - - - - - - - - - - - - - - - - - - - -
And when the application loads, an Exception is returned:
- - - - - - - - - - - - - - - - - - - - - - - -
- Server startup in 4328 ms
- Processing Context configuration file URL file:E:\home\myApp\catalina-base-5.0\conf\Catalina\localhost\myApp.xml
- Begin event threw error
java.lang.NoClassDefFoundError: org/apache/catalina/realm/RealmBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - -
The Tomcat-class "RealmBase" is placed in "catalina.jar", which is actually a Tomcat JAR, and is loaded on server-startup.
Any ideas why do I get an "NoClassDefFoundError" Exception afterwards?
Thanks!
Edi