File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Class not found Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Class not found Exception" Watch "Class not found Exception" New topic

Class not found Exception

mah kumar

Joined: Feb 05, 2004
Posts: 22
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

Joined: Mar 22, 2000
Posts: 12836
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.
I agree. Here's the link:
subject: Class not found Exception