ClassNotFoundException: can't find my
servlet. Can you help?
Hello everyone,
I have a servlet called MemberController under the following default directory in a server that uses
Tomcat:
WEB-INF/classes/cs770/project/MemberController
This MemberController class is inside the following package:
package cs770.project;
Currently, I am using the following to call this servlet:
servlet/cs770.project.MemberController
More precisely, this is the complete URL:
http://development.carlisia.com/servlet/cs770/project/MemberController?start=Start+Simulation On my log file on the server, I am see the error below. I figure my problem is either:
1) I misplaced my servlet (but I don't really think so)
2) I am using the wrong path to call the servlet
3) Something else entirely
I've been reading a lot of documentation, including the server's intructions, and can't figure this one out. If you have any hunch of how to fix this I would appreciate it.
Thank you.
Web Account Init Time: Mon May 05 09:47:25 PDT 2003
Provider URL Binded:
rmi://localhost:64700 [Generic DataSource created. It is the preferred means of getting a
database connection in a
Java Application. Please refer to the
DataSource topic in the Help Section on how to use.]
******************* Servlet 2.2+ NGASI Engine v2.0 ACTIVATED on: Mon May 05 09:47:26 PDT 2003
java.lang.ClassNotFoundException: Class Not Found: servlet/cs770.project.MemberController
at ngasi.loader.a.loadClass(Unknown Source)
at ngasi.loader.a.loadClass(Unknown Source)
at ezj.g.a.c.a(Unknown Source)
at ezj.g.a.c.int(Unknown Source)
at ezj.d.m.a(Unknown Source)
at ezj.d.m.if(Unknown Source)
at ezj.d.d.(Unknown Source)
at ngasi.loader.ContextLoader.initContext(Unknown Source)
at ngasi.loader.ContextLoader.main(Unknown Source)
[Servlet Error: java.lang.ClassNotFoundException: Class Not Found: servlet/cs770.project.MemberController]
java.lang.NoClassDefFoundError: MemberController (wrong name: cs770/project/MemberController)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
at ngasi.loader.a.a(Unknown Source)
at ezj.engines.EZServletRunner.do(Unknown Source)
at ezj.engines.EZServletRunner.service(Unknown Source)
at ezj.b.a.a(Unknown Source)
at ezj.b.c.handleConnection(Unknown Source)
at ezj.b.e.run(Unknown Source)
******************* Servlet Engine PASSIVATED on: Mon May 05 10:28:45 PDT 2003