Results 1 to 2 of 2
  1. #1
    ravinder64 is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Default how to remove this error

    lifecycle is not abstract and does not override abstract method service(javax.servlet.servletrequest req,javax.servletresponse rs)in javax.servlet.genericservlet

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    You've written a class that extends "GenericServlet" (which contains the abstract method "service(request, response)") which you either have to implement or declare your class abstract (which is exactly what the exception says).

    But, if you are writing a simple web service, you shouldn't be extending GenericServlet anyway. You should be extending HttpServlet.
    Last edited by masijade; 11-01-2008 at 07:17 AM.

Similar Threads

  1. how can we remove blank lines from a .txt
    By Camden in forum New To Java
    Replies: 12
    Last Post: 07-29-2011, 01:38 PM
  2. add remove swing components
    By willemjav in forum New To Java
    Replies: 6
    Last Post: 10-09-2008, 07:37 PM
  3. remove a portion from a file
    By alon2580 in forum New To Java
    Replies: 13
    Last Post: 08-25-2008, 01:45 PM
  4. how to remove an image icon
    By cecily in forum Advanced Java
    Replies: 1
    Last Post: 08-05-2007, 04:25 AM
  5. how to remove an old version of JDK
    By tommy in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •