Class not found Exception

mah kumar

Greenhorn

Posts: 22

posted 13 years ago

Hi friends, I am using Tomcat-4.0 on Redhat linux9.In jsp program i am using bean. For example, <jsp:useBean id=webmail class=webmail1.webmailbean scope=page />. I had put the java file in to web-inf/classes directory. When running jsp file it produce class not found exception.It works fine in Windows NT.Please help me. Thanks in advance.

William Brogden

Author and all-around good cowpoke
Rancher

Posts: 13078

6

posted 13 years ago

Does your .jsp page tag code import the webmail1.webmailbean class? If not, exactly how do you refer to it? I really hope that "put the java file in to web-inf/classes directory." is a misprint and you meant to say the compiled .class file. Are you saying that you have exactly the same code on WinNT as on your Linux server - seems pretty unlikely to me, but I suppose it is possible. Bill