[ 
https://issues.apache.org/jira/browse/IGNITE-15873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Korol updated IGNITE-15873:
--------------------------------
    Description: 
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]


  was:
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*, 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]



> 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
>            Priority: Major
>
> 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)

Reply via email to