This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 13027
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
It's not a secret anymore!