This question has been posted on StackOverflow, and despite a bounty, does not seem to attract any answer. http://stackoverflow.com/questions/37658975/jetty-9-3-9-v20160517-provider-websocketcdiinitializer-not-found-when-enabling-a <http://stackoverflow.com/questions/37658975/jetty-9-3-9-v20160517-provider-websocketcdiinitializer-not-found-when-enabling-a>
Could someone on the mailing list help us ? The text posted on StackOverflow
follows:
When deploying a webapp using the `DeploymentManager`, this error is thrown
2016-06-06 15:19:37,750 WARN [org.eclipse.jetty.deploy.DeploymentManager]
(WrapperSimpleAppMain) Unable to reach node goal: started
(DeploymentManager.java:506)
java.util.ServiceConfigurationError:
javax.servlet.ServletContainerInitializer: Provider
org.eclipse.jetty.cdi.websocket.WebSocketCdiInitializer not found
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at
org.eclipse.jetty.annotations.AnnotationConfiguration.getNonExcludedInitializers(AnnotationConfiguration.java:864)
at
org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:444)
at
org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:494)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1361)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
at
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
This happens when enabling annotations support using:
org.eclipse.jetty.webapp.Configuration.ClassList classlist =
org.eclipse.jetty.webapp.Configuration.ClassList.setServerDefault(server);
classlist.addBefore(
"org.eclipse.jetty.webapp.JettyWebXmlConfiguration",
"org.eclipse.jetty.annotations.AnnotationConfiguration"
);
classlist.addAfter(
"org.eclipse.jetty.webapp.FragmentConfiguration",
"org.eclipse.jetty.plus.webapp.PlusConfiguration"
);
The jar `cdi-websocket-9.3.9.v20160517.jar` is in the class path
This [issue][1] suggests to deactivate the `cdi` Jetty module, but it does not
say how to do it with an embedded Jetty.
How do I fix this ?
**EDIT**
We realize that this issue may be caused by the (complex) environment the
application is running in.
Therefore, I am particularly interested in understanding **what** are the root
reasons that could cause this exception to be thrown
[1]:
http://stackoverflow.com/questions/31547542/why-netbeans-jetty-plugin-doesnt-run-but-jettyrun-works-on-my-project
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
