I saw something similar recently- a static code block in the class in
question was throwing an unchecked exception, which prevented the class
from being loaded.

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-----Original Message-----
From: Worley Brent - bworle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 3:22 PM
To: '[EMAIL PROTECTED]'
Subject: NoClassDefFoundError


Hi everyone,

I'm fairly new to Java and Tomcat.  I hope this problem can be easily
explained.

I am using Tomcat 5.0.24.

I have an application, packaged it in a WAR file, and deployed it.  This
application has a login page.  After logging in, the application
redirects to a page named search.jsp.  This page loads a package (import
search.*). Package search includes several classes.  The two in question
are Search.class and SearchSession.class.  SearchSession is started as a
bean and it has an instance of the Search class in it.  However, when
search.jsp loads (and loads SearchSession) I get a
java.lang.NoClassDefFoundError. When I view the source, it is where
SearchSession creates an instance of the Search class.

I have verified that the classes are under WEB-INF/classes/search.

Any ideas of what could be going wrong?

Thanks,
Brent Worley



**********************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please re-send this
communication to the sender and delete the original message or any copy
of it from your computer system. Thank You.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to