This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 12761
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 agree. Here's the link:
subject: ClassNotFoundException
Similar Threads
ejb.jar file
Servlet delivery in Tomcat
Basic servlet question
where to look for the error...
problem with first servlet