Ensure jetty-cdi classes visible to weld.
This commit is contained in:
parent
05784f46b4
commit
b8e062bd51
|
@ -48,13 +48,17 @@ public class JettyWeldInitializer
|
|||
webapp.addSystemClass("org.jboss.logging.");
|
||||
webapp.addSystemClass("com.google.common.");
|
||||
webapp.addSystemClass("org.eclipse.jetty.cdi.websocket.annotation.");
|
||||
|
||||
|
||||
// don't hide weld classes from webapps (allow webapp to use ones from system classloader)
|
||||
webapp.prependServerClass("-org.eclipse.jetty.cdi.websocket.annotation.");
|
||||
webapp.prependServerClass("-org.eclipse.jetty.cdi.core.");
|
||||
webapp.prependServerClass("-org.eclipse.jetty.cdi.servlet.");
|
||||
webapp.addServerClass("-org.jboss.weld.");
|
||||
webapp.addServerClass("-org.jboss.classfilewriter.");
|
||||
webapp.addServerClass("-org.jboss.logging.");
|
||||
webapp.addServerClass("-com.google.common.");
|
||||
webapp.addServerClass("-org.eclipse.jetty.cdi.websocket.annotation.");
|
||||
|
||||
}
|
||||
|
||||
public static void initContext(ContextHandler handler) throws NamingException
|
||||
|
|
Loading…
Reference in New Issue