Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tomcat 5.0.28

843842Feb 28 2005 — edited Feb 28 2005
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2005
Added on Feb 28 2005
1 comment
333 views