File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How can i resolve this  exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "How can i resolve this  exception" Watch "How can i resolve this  exception" New topic

How can i resolve this exception

nagaraj reddy
Ranch Hand

Joined: Feb 21, 2005
Posts: 43
Hi ,

I am new to servlets. when i was trying to deploy my servlet in weblogic. i am invoking servlet through html page.

when i click submit in html page i am getting the fallowing exception..

Error 500--Internal Server Error
javax.servlet.ServletException: Servlet class: 'myserv' couldn't be instantiated
at weblogic.servlet.internal.ServletStubImpl.createServlet(
at weblogic.servlet.internal.ServletStubImpl.createInstances(
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
at weblogic.servlet.internal.ServletStubImpl.getServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(

plz tell me where i am going wrong
Sergey Tyulkin
Ranch Hand

Joined: May 10, 2005
Posts: 87
Maybe, your servlet
1) has no default constructor (i.e. constructor without parameters)
2) or, your forgot to implement Servlet (the easiest way - by extending GenericServlet or HttpServlet classes) interface?
nagaraj reddy
Ranch Hand

Joined: Feb 21, 2005
Posts: 43
Thanks for reply.

I got solution , i need to attach PUBLIC to the servlet class
I agree. Here's the link:
subject: How can i resolve this exception
It's not a secret anymore!