The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

michael_m (4) [Avatar] Offline
I tested this listing ona newly installed Groovy 2.1.5 (on 64-bit Java7) and got this result:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
D:webserver.groovy: 11: unable to resolve class ServletContextHandler
@ line 11, column 1.
import static ServletContextHandler.*

1 error

It is probably a good idea to update the example to Jetty version 9.
paulk_asert (33) [Avatar] Offline
Re: Listing 12.6 (Jetty webserver) results in error
The import is wrong. It should be:

import static org.eclipse.jetty.servlet.ServletContextHandler.*