aspose file tools*
The moose likes Servlets and the fly likes ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "ClassNotFoundException" Watch "ClassNotFoundException" New topic
Author

ClassNotFoundException

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Hi All,
I am trying out one online example.
But when one of the .jsp file tries to accsess the SimpleItem.java class which is under the "myServlets" package I am getting "java.lang.ClassNotFoundException" error.
As per the name I can understand that the classloader is not able to find the above class in the respective package; but all the .class files are under the WEB_INF/classes/myServlets directory.
Also what I have noticed is though my package name is "myServlets" in the exception it is saying "java.lang.ClassNotFoundException: myServelts.SimpleItem" the package "myServlet" is spelled as "myServelts" . From where it is getting this wrong name? where do I look for the error?
Please help me.
Thanks in advance..
Trupti
[ December 10, 2002: Message edited by: trupti nigam ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12821
    
    5
Sounds like a spelling error in your JSP somewhere - probably in an import attribute or jsp:useBean tag.
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Thanks a lot William..Miss spelled in one of the imports..
It worked..:-)
Trupti
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFoundException