• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Servlet Exception for a perticular servlet while running.

 
Pragya Patnaik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the below mentioned error while running the perticular servlet. When I am running other servlets I could get proper output.
But for this one getting below mentioned error. Can any one help me finding the exact solution for this.

Nov 22, 2010 1:19:57 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet MyServlet as unavailable

Nov 22, 2010 1:19:57 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet MyServlet
javax.servlet.ServletException: Error instantiating servlet class MyServlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you doing in MyServlet ? Maybe an exception is being thrown. Please show the public constructor.
 
Pragya Patnaik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some init params which are properly initialized in a method init().
and there is a static statement which should be called when ever the class is loaded.
I am not even getting the static statement which just prints a line.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic