Title: Message Title
Marek Novotny created an issue
Weld / WELD-2635
Weld core doesn't properly detect Jetty server for GWT 2.8/2.9 test environment
Issue Type:
Bug
Affects Versions:
3.1.5.Final
Assignee:
Unassigned
Created:
15/Aug/20 4:30 AM
Priority:
Major
Reporter:
Marek Novotny
This issue is similar to WELD-1615, but for 3.1.x Running GWTTestCase junit testsuite (gwt 2.8.2) with Jetty 9.2.14.v20151106 will end with the error below, note that GWT 2.9.0 has the same embedded Jetty version for testing so it is the same. Jetty used `org.mortbay.jetty` package for verstions older than 9.x, from 9.x+ uses `org.eclipse.jetty` package and that error below is just pointing to mortbay instead of eclipse Jetty:
INFO [servletJetty] WELD-ENV-001203: GWTHostedMode detected, JSR-299 injection will be available in Servlets and Filters. Injection into Listeners is not supported.
WARN [AbstractLifeCycle] FAILED org.eclipse.jetty.annotations.ServletContainerInitializersStarter@61a91912: 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:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)