HTTP Status 500 - Error instantiating servlet class pkg.coreServlet

Change the

private static final long serialVersionUID = 1L;

to any other value like

private static final long serialVersionUID = 102831973239L;

also you can generate it automatically in eclipse.

It is because each servlet in a app has a unique id.and tomcat causes problem with two servlets having same id...


In my case missing private static final long serialVersionUID = 1L; line caused the same error. I added the line and it worked!


Do not put the src folder in the WEB-INF directory!!