Martin Kouba commented on Bug WELD-1615

It seems we need GwtDevHostedModeContainer for older GWT versions, where Jetty 6 is bundled.

We have the following options:

  1. drop support for GWT 2.5 and older (note that Jetty 6 is not supported since 2.0.2.Final)
  2. detect the GWT version and skip GwtDevHostedModeContainer for 2.6+
  3. change the container detection ordering

Let me explain the third option. Right now GwtDevHostedModeContainer is the first container we try to detect. Older versions of GWT dev bundled both Tomcat 6 and Jetty 6 classes but were using Jetty container. Therefore it was necessary to detect GWT dev before Tomcat. However I believe this is not needed anymore as we don't support Tomcat 6 in Weld 2.2+ and we use a different class to detect Tomcat 7+. So we could change the detection ordering so that GwtDevHostedModeContainer is after the regular Jetty container. The question is whether org.jboss.weld.environment.jetty.JettyContainer will work with GWT dev mode.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira