This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Getting Servlet Exception for a perticular servlet while running. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting Servlet Exception for a perticular servlet while running." Watch "Getting Servlet Exception for a perticular servlet while running." New topic
Author

Getting Servlet Exception for a perticular servlet while running.

Pragya Patnaik
Greenhorn

Joined: Dec 03, 2009
Posts: 7
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

What are you doing in MyServlet ? Maybe an exception is being thrown. Please show the public constructor.


[My Blog]
All roads lead to JavaRanch
Pragya Patnaik
Greenhorn

Joined: Dec 03, 2009
Posts: 7
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Servlet Exception for a perticular servlet while running.
 
Similar Threads
NoSuchMethodError while accessing jar method
java.lang.NullPointerException at the starting of tomcat 6.0
Im getting this Error "Skipping validation rules file from 'validator-rules.xml'."
Trying to connect to SQL-2005 with JDBC and JNDI
Error loading WebappClassLoader