This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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 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..
[ December 10, 2002: Message edited by: trupti nigam ]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13000
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..:-)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: ClassNotFoundException
It's not a secret anymore!