My xml is:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Call name="addServerClass">
<Arg>-org.eclipse.jetty.util.ssl.</Arg>
</Call>
</Configure>
But it fails with:
2013-11-20 21:33:10.051:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@427a9efe{/,null,null}
java.lang.NullPointerException
at org.eclipse.jetty.webapp.Configuration$ClassList.serverDefault(Configuration.java:131)
at org.eclipse.jetty.webapp.WebAppContext.loadConfigurations(WebAppContext.java:918)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:421)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:490)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1250)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:297)
at org.eclipse.jetty.start.Main.start(Main.java:706)
at org.eclipse.jetty.start.Main.main(Main.java:103)
I tried even empty <Configure> (not Call) with same result.