tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kailash vyas <vya...@yahoo.com>
Subject NoClassDefFoundError
Date Fri, 01 Jun 2001 07:14:55 GMT
hi all

i am trying to run a jsp file with a bean tag in
Apache Jserv.
i have been provided with a servlets directory and a
bean directory where the bean directory has been
included in classpath on the server.

the code for jsp file is 
<html>

<jsp:useBean id="comment" class="cal.hello"
scope="request">
        <jsp:setProperty name="comment" property="*"
/>
</jsp:useBean>
   <b><% out.print(comment.getComment()); %></b>


</html>

the code for bean is 
package cal;
public class hello{
String comment;
 public hello() {
    comment = "comment";
  }
  public String getComment() {
     return comment;
  } 
  public void setComment(String acomment) {
     comment = acomment;
  }
}

i put the jsp file in servlets directory and the class
file in bean/cal.

i get the following error.

Exception while servicing request for
/servlets/hello.jsp:
java.lang.NoClassDefFoundError

i also tried putting a jar file in bean directory and 

pls help!!!!
-kailash

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message