[ https://issues.apache.org/jira/browse/IGNITE-15873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17441764#comment-17441764 ]
Vyacheslav Koptilin edited comment on IGNITE-15873 at 11/11/21, 1:05 PM: ------------------------------------------------------------------------- Hope that the example will be updated soon as well https://ignite.apache.org/docs/latest/restapi#example-jetty-xml-configuration was (Author: slava.koptilin): Hope that the example will updated soon as well https://ignite.apache.org/docs/latest/restapi#example-jetty-xml-configuration > Fix constructor argument in jetty config threadPool -> threadpool > ----------------------------------------------------------------- > > Key: IGNITE-15873 > URL: https://issues.apache.org/jira/browse/IGNITE-15873 > Project: Ignite > Issue Type: Bug > Components: documentation > Affects Versions: 2.11 > Reporter: Ilya Korol > Assignee: Vyacheslav Koptilin > Priority: Major > Fix For: 2.13 > > Time Spent: 0.5h > Remaining Estimate: 0h > > According to jetty sources: > {code:java} > public Server(@Name("threadpool") ThreadPool pool) > { > _threadPool = pool != null ? pool : new QueuedThreadPool(); > addBean(_threadPool); > setServer(this); > } > {code} > When we instantiate Server class via xml we need to use *threadpool* (all > lowercase) instead of *threadPool* > {code:java} > <Configure id="Server" class="org.eclipse.jetty.server.Server"> > --- <Arg name="threadPool"> > +++ <Arg name="threadpool"> > ... > {code} > otherwise we would get an error: > {code:java} > 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 > {code} > [SO > issue|https://stackoverflow.com/questions/69859238/apache-ignite-unable-to-start-2-11-ignite-nodes-in-a-cluster] -- This message was sent by Atlassian Jira (v8.20.1#820001)