Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.11
-
Docs Required
Description
According to jetty sources:
public Server(@Name("threadpool") ThreadPool pool) { _threadPool = pool != null ? pool : new QueuedThreadPool(); addBean(_threadPool); setServer(this); }
When we instantiate Server class via xml we need to use threadpool (all lowercase) instead of threadPool
<Configure id="Server" class="org.eclipse.jetty.server.Server"> --- <Arg name="threadPool"> +++ <Arg name="threadpool"> ...
otherwise we would get an error:
Caused by: java.lang.IllegalStateException: No matching constructor class org.eclipse.jetty.server.Server in file:///...config/jetty.xml at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:454) at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:380) at org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.loadJettyConfiguration(GridJettyRestProtocol.java:318) ... 16 more
Attachments
Issue Links
- links to