Hi Joakim,
Thanks for your reply...
A directory listing is likely due to nothing handling the default url-pattern "/" and the DefaultServlet kicking in and showing the directory listing (as that's how your DefaultServlet is configured).
The default url-pattern “/“ is supposed to be handled by my application, so I wouldn’t expect it to be picked up by the DefaultServlet. Do I need to do something to turn off the DefaultServlet? Also, what does this do?
server.addLifeCycleListener(this);
What does 'this' do with the lifecycle?
Ah - sorry. This is just an artefact of how the application is organised. The method to launch Jetty appears in a class that implements LifeCycle.Listener. It could be the one creating/managing things for Spring (an unusual, but doable, technique).
I don’t think so - I think this is just a convenient way to avoid defining a separate class for the LifeCycle.Listener.
The various Listener methods are simply used to update the GUI.
Best wishes,
Robert
_______________________________________________ jetty-users mailing list jetty-users@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users |