This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Strange servlet behaviour Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Strange servlet behaviour" Watch "Strange servlet behaviour" New topic

Strange servlet behaviour

Chris Siciliano

Joined: Apr 02, 2012
Posts: 9
Hello everyone !

I read in the servlet 3.0 spec that servlet declare with @WebServlet must extends HttpServlet. I test with extends GenericServlet or implements Servlet
and it works...

Then i read when i call getAsyncContext() without call startAsync() before throws IllegalException. But it returns just null (no exception)..

Do you have explanations about this behaviour ?? I used Tomcat 7 like container.

Thank you !!!

I agree. Here's the link:
subject: Strange servlet behaviour
Similar Threads
difference between join() and wait() method
Could you please explain the following code?
[ Servlet ] Error when I added the init() method to a servlet
Weird problem in Windows 7 and Ubuntu 10.10 in a java application