Konstantin Gribov AFAIK some GWT versions bundled all Tomcat classes but used Jetty (see also
WELD-934
). I agree that it's the simplest way and works in most cases. And the same applies to getServerInfo(). I think if we don't have a reliable way we should allow the user to override the detected container (e.g. context-param in web.xml). The truth is that this would make the app unportable accross servlet containers (it wouldn't work on app servers anyway). What do you think?
|