Here is my source, its short or I wouldn't paste it here, I don't have a constructor
any longer, and it still doesn't make a difference.
package ChangeRequest;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
class CR extends HttpServlet {
/* manage get requests */
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request, response);
}
/* manage post requests */
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Hello World");
out.close();
}
public String getServletInfo() {
return "Quentins Example ChangeRequest system";
}
}
Cheers
Quentin J Sarafinchan
---------- Original Message ----------------------------------
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Sat, 10 Mar 2001 11:04:19 -0800 (PST)
On Sat, 10 Mar 2001, Quentin Sarafinchan wrote:
> I think I have the web.xml and server.xml files configured correctly now, buy when
>executing the servlet, I receive this message ....
>
> java.lang.IllegalAccessException: ChangeRequest/CR
>
This error will happen if you do not declare your servlet to be public, or
you declare it without a zero-argument constructor. You should define
your servlet like this:
public class CR extends HttpServlet {
...
}
and not include a constructor at all.
> when I use this URL: http://boo.polartime.com:8081/ChangeRequest/servlet/CR
>
> The class is now completely empty, only the skeleton remains for a HttpServlet
>remains. I'm puzzled.
>
> Cheers
> Quentin J Sarafinchan
>
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
________________________________________________________________
Sent via the WebMail system at mail.polarware.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]