Ensure jetty-cdi classes visible to weld.

This commit is contained in:
Jan Bartel 2015-04-14 15:55:48 +10:00
parent 05784f46b4
commit b8e062bd51
1 changed files with 5 additions and 1 deletions

View File

@ -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