tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claudiu Bran" <>
Subject java.lang.NoClassDefFoundError (help a newbie plz...)
Date Fri, 22 Feb 2002 04:08:36 GMT
I have a simple .jsp which wants to use a bean named HitCountBean, but upon
execution I get

Internal Servlet Error: javax.servlet.ServletException: hit/HitCountBean
Root Cause:
java.lang.NoClassDefFoundError: hit/HitCountBean

Here is HitCountBean.jsp, located in /var/tomcat/webapps/myex/
<jsp:useBean id="counter" scope="application" class="hit.HitCountBean" />
<jsp:setProperty name="counter" property="newSession" value="<%=
session.isNew() %>" />
And this is located in
package hit;
import java.util.Date;
import java.text.DateFormat;

public class HitCountBean implements Serializable {
   private boolean b;
   private int hitCount;
   private String serverStart;
   private Date date = new Date();

So, what do I have to do, where do I have to put ?
Thanks in advance

PS: I am *very* newbie to jsp, java.

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message