<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
#email-body { min-width: 30em !important; }
#email-page { padding: 8px !important; }
#email-banner { padding: 8px 8px 0 8px !important; }
#email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
#email-fields { padding: 0 8px 8px 8px !important; }
#email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
<tr valign="top">
<td id="email-page" style="padding:16px !important;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
<tr valign="top">
<td bgcolor="#3b4d64" style="background-color:#3b4d64;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://issues.jboss.org/s/en_US-x52yjt-1988229788/6109/58/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
</tr><tr valign="top">
<td id="email-banner" style="padding:32px 32px 0 32px;">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
<div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
<a class="user-hover" rel="tomekki" id="email_tomekki" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=tomekki" style="color:#3b73af;">Tomek D</a>
edited a comment on <img src="https://issues.jboss.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#3b73af;text-decoration:none;' href='https://issues.jboss.org/browse/WELD-1615'>WELD-1615</a>
</div>
<div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
<a style='color:#3b73af;text-decoration:none;' href='https://issues.jboss.org/browse/WELD-1615'><strong>org.jboss.weld.environment.servlet.Listener crashes in GWT dev hosted mode</strong></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td id="email-fields" style="padding:0 32px 32px 32px;">
<table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
<tr valign="top">
<td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td colspan="2" style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 16px 0;width:100%;">
<div class="comment-block" style="background-color:#edf5ff;border:1px solid #dddddd;color:#000000;padding:12px;"><p>I just did. The MortbayWeldServletHandler will be selected and I see this error:</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/Users/admin/.m2/repository/com/google/gwt/gwt-dev/2.6.0/gwt-dev-2.6.0.jar' to the web app classpath for this session
11:36:13,505 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:36:13,506 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:36:13,506 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT/WEB-INF/classes/logback.xml]
11:36:13,538 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:36:13,953 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:36:13,960 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:36:14,014 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
11:36:14,014 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
11:36:14,014 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
11:36:14,014 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
11:36:14,014 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:36:14,014 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
11:36:14,015 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@48b844a8 - Registering current configuration as safe fallback point
11:36:14.019 [main] DEBUG org.eclipse.jetty.util.log - Logging to Logger[org.eclipse.jetty.util.log] via org.eclipse.jetty.util.log.Slf4jLog
11:36:14.055 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
11:36:14.062 [main] INFO o.j.w.environment.servlet.Listener - Initialize Weld using ServletContextListener
11:36:14.074 [main] INFO org.jboss.weld.Version - WELD-000900: 2.2.1 (2014-04-27 10:57)
11:36:14.134 [main] INFO org.jboss.weld.Bootstrap - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
11:36:14.152 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000124: Using 8 threads for bootstrap
11:36:14.205 [main] WARN org.jboss.weld.Interceptor - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
11:36:14.206 [main] WARN org.jboss.weld.Interceptor - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
11:36:14.228 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%ApplicationContext
11:36:14.233 [main] DEBUG org.jboss.weld.Reflection - WELD-000601: interface javax.inject.Singleton is missing @Target. Weld will use this annotation, however this may make the application unportable.
11:36:14.233 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%SingletonContext
11:36:14.236 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%BoundSessionContext
11:36:14.237 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%BoundConversationContext
11:36:14.239 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%BoundRequestContext
11:36:14.239 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%RequestContext
11:36:14.240 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%DependentContext
11:36:14.240 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpSessionContext
11:36:14.241 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpSessionDestructionContext
11:36:14.241 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpConversationContext
11:36:14.241 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpRequestContext
11:36:14.264 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
11:36:14.264 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
11:36:14.265 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
11:36:14.265 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
11:36:14.292 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000103: Enabled alternatives for Weld BeanManager for flat [bean count=2]: (empty collection)
11:36:14.292 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000104: Enabled decorator types for Weld BeanManager for flat [bean count=2]: (empty collection)
11:36:14.292 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000105: Enabled interceptor types for Weld BeanManager for flat [bean count=2]: (empty collection)
11:36:14.296 [main] INFO o.j.w.e.g.GwtDevHostedModeContainer - GWTHostedMode detected, JSR-299 injection will be available in Servlets and Filters. Injection into Listeners is not supported.
Starting Jetty on port 8888
[WARN] FAILED c.g.g.d.s.j.WebAppContextWithReload{/,[file:/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT/, jar:file:/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT/WEB-INF/lib/jsf-impl-2.1.3.jar!/META-INF/resources/]},/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT: java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:413)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.getWeldServletHandlerClass(GwtDevHostedModeContainer.java:46)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.initialize(GwtDevHostedModeContainer.java:57)
        at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:115)
        at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:63)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:518)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:282)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:717)
        at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:522)
        at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1104)
        at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:844)
        at com.google.gwt.dev.DevMode.main(DevMode.java:322)
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.servlet.ServletHandler
        at java.lang.ClassLoader.findClass(ClassLoader.java:531)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:407)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        ... 36 more
[WARN] FAILED org.eclipse.jetty.server.handler.RequestLogHandler@570472f2: java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:413)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.getWeldServletHandlerClass(GwtDevHostedModeContainer.java:46)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.initialize(GwtDevHostedModeContainer.java:57)
        at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:115)
        at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:63)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:518)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:282)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:717)
        at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:522)
        at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1104)
        at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:844)
        at com.google.gwt.dev.DevMode.main(DevMode.java:322)
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.servlet.ServletHandler
        at java.lang.ClassLoader.findClass(ClassLoader.java:531)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:407)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        ... 36 more
[WARN] FAILED org.eclipse.jetty.server.Server@65169a7f: java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:413)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.getWeldServletHandlerClass(GwtDevHostedModeContainer.java:46)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.initialize(GwtDevHostedModeContainer.java:57)
        at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:115)
        at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:63)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:518)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:282)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:717)
        at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:522)
        at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1104)
        at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:844)
        at com.google.gwt.dev.DevMode.main(DevMode.java:322)
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.servlet.ServletHandler
        at java.lang.ClassLoader.findClass(ClassLoader.java:531)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:407)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        ... 36 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/ServletHandler
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:413)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.getWeldServletHandlerClass(GwtDevHostedModeContainer.java:46)
        at org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.initialize(GwtDevHostedModeContainer.java:57)
        at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:115)
        at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:63)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:518)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:282)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:717)
        at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:522)
        at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1104)
        at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:844)
        at com.google.gwt.dev.DevMode.main(DevMode.java:322)
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.servlet.ServletHandler
        at java.lang.ClassLoader.findClass(ClassLoader.java:531)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:407)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
        ... 36 more
</pre>
</div></div>
<p>Just to see that happens: I modified the method WeldServletLifecycle.findContainer() in a way, that it returns JettyContainer.INSTANCE always.</p>
<p>The the result is this error:</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/Users/admin/.m2/repository/com/google/gwt/gwt-dev/2.6.0/gwt-dev-2.6.0.jar' to the web app classpath for this session
12:44:28,071 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
12:44:28,071 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
12:44:28,071 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT/WEB-INF/classes/logback.xml]
12:44:28,102 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
12:44:28,506 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
12:44:28,513 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
12:44:28,560 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
12:44:28,560 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
12:44:28,560 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
12:44:28,560 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
12:44:28,560 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
12:44:28,561 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
12:44:28,561 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@44df9749 - Registering current configuration as safe fallback point
12:44:28.567 [main] DEBUG org.eclipse.jetty.util.log - Logging to Logger[org.eclipse.jetty.util.log] via org.eclipse.jetty.util.log.Slf4jLog
12:44:28.603 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
12:44:28.611 [main] INFO o.j.w.environment.servlet.Listener - Initialize Weld using ServletContextListener
12:44:28.623 [main] INFO org.jboss.weld.Version - WELD-000900: 2.2.1 (2014-04-27 12:42)
12:44:28.681 [main] INFO org.jboss.weld.Bootstrap - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
12:44:28.698 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000124: Using 8 threads for bootstrap
12:44:28.748 [main] WARN org.jboss.weld.Interceptor - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
12:44:28.749 [main] WARN org.jboss.weld.Interceptor - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
12:44:28.769 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%ApplicationContext
12:44:28.774 [main] DEBUG org.jboss.weld.Reflection - WELD-000601: interface javax.inject.Singleton is missing @Target. Weld will use this annotation, however this may make the application unportable.
12:44:28.774 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%SingletonContext
12:44:28.776 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%BoundSessionContext
12:44:28.778 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%BoundConversationContext
12:44:28.779 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%BoundRequestContext
12:44:28.779 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%RequestContext
12:44:28.780 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%DependentContext
12:44:28.781 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpSessionContext
12:44:28.782 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpSessionDestructionContext
12:44:28.782 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpConversationContext
12:44:28.782 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%deployment%HttpRequestContext
12:44:28.804 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
12:44:28.804 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
12:44:28.805 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
12:44:28.805 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
12:44:28.829 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000103: Enabled alternatives for Weld BeanManager for flat [bean count=2]: (empty collection)
12:44:28.829 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000104: Enabled decorator types for Weld BeanManager for flat [bean count=2]: (empty collection)
12:44:28.829 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000105: Enabled interceptor types for Weld BeanManager for flat [bean count=2]: (empty collection)
12:44:28.837 [main] INFO o.j.w.e.jetty.JettyContainer - Jetty 7.2+ detected, CDI injection will be available in Listeners, Servlets and Filters.
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.event.Event] with qualifiers [@Default]
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%BoundSessionContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%HttpRequestContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%RequestContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%HttpConversationContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%HttpSession
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.Decorator] with qualifiers [@Default]
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%HttpSessionDestructionContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.Bean] with qualifiers [@Default]
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.Bean] with qualifiers [@Intercepted]
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%ApplicationContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%SingletonContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%BoundConversationContext
12:44:28.845 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%HttpSessionContext
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.Interceptor] with qualifiers [@Default]
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%DependentContext
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%ServletContext
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%BoundRequestContext
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.Bean] with qualifiers [@Decorated]
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.EventMetadata] with qualifiers [@Default]
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%HttpServletRequest
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.spi.InjectionPoint] with qualifiers [@Default]
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: Implicit Bean [javax.enterprise.inject.Instance] with qualifiers [@Default]
12:44:28.846 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000106: Bean: WELD%AbstractSyntheticBean%flat%Conversation
12:44:28.890 [main] DEBUG org.jboss.weld.Bootstrap - WELD-000100: Weld initialized. Validating beans
Starting Jetty on port 8888
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload{/,[file:/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT/, jar:file:/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT/WEB-INF/lib/jsf-impl-2.1.3.jar!/META-INF/resources/]},/Users/admin/Documents/workspace/jetty-weld/target/jetty-weld-0.0.1-SNAPSHOT
java.lang.IllegalStateException: Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?
        at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:47)
        at org.jboss.weld.Container.instance(Container.java:55)
        at org.jboss.weld.SimpleCDI.<init>(SimpleCDI.java:77)
        at org.jboss.weld.servlet.StaticWeldProvider$EnhancedCDI.<init>(StaticWeldProvider.java:28)
        at org.jboss.weld.servlet.StaticWeldProvider$EnhancedCDI.<init>(StaticWeldProvider.java:28)
        at org.jboss.weld.servlet.StaticWeldProvider.getCDI(StaticWeldProvider.java:45)
        at javax.enterprise.inject.spi.CDI.current(CDI.java:60)
        at org.jboss.weld.servlet.WeldInitialListener.contextInitialized(WeldInitialListener.java:86)
        at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.contextInitialized(ForwardingServletListener.java:34)
        at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:64)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:518)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:282)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:717)
        at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:522)
        at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1104)
        at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:844)
        at com.google.gwt.dev.DevMode.main(DevMode.java:322)
</pre>
</div></div>
<p>You here saying:</p>
<blockquote>
<p>The question is whether org.jboss.weld.environment.jetty.JettyContainer will work with GWT dev mode.</p></blockquote>
<p>After all, looks like the hosted mode and weld do not play together nicely.</p>
<p>In stand-alone mode, weld in jetty is working just fine (although there are some other disadvantages such as the need to start GWT and jetty separately) </p>
</div>
<div style="color:#505050;padding:4px 0 0 0;"> </div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td><!-- End #email-page -->
</tr>
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
This message is automatically generated by JIRA.<br />
If you think it was sent incorrectly, please contact your JIRA administrators<br />
For more information on JIRA, see: <a style='color:#3b73af;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
</td>
</tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->