The issue is originally in NB IZ tracker :
The problem with AsyncRequest sample concerns update of Servlet 3.0 spec.
Current state of source code sample doesn't conform to latest ( b70 ) glassfish
implementation. I suppose Glassfish is updated with latest changes of Servlet
3.0 spec but this sample is not.
As result there are several compilation errors.