You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2016/01/14 12:21:39 UTC

[jira] [Created] (KARAF-4268) Website has obsolete jetty configuration

Benson Margulies created KARAF-4268:
---------------------------------------

             Summary: Website has obsolete jetty configuration
                 Key: KARAF-4268
                 URL: https://issues.apache.org/jira/browse/KARAF-4268
             Project: Karaf
          Issue Type: Bug
            Reporter: Benson Margulies


{noformat}
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.server.nio.SelectChannelConnector not found by
org.eclipse.jetty.server [137]
{noformat}

resulted from following the example at

https://karaf.apache.org/manual/latest/users-guide/tuning.html

The correct replacement is:

{code}
<Configure id="Server" class="org.eclipse.jetty.server.Server">
    <Call name="addConnector">
        <Arg>
            <New class="org.eclipse.jetty.server.ServerConnector">
                <Arg name="server"><Ref refid="Server" /></Arg>
                <Arg name="factories"><!-- insert one or more
factories here --></Arg>

                <Set name="port">8282</Set>
                <Set name="name">metrics</Set>
            </New>
        </Arg>
    </Call>
</Configure>
{code}

Also note that this doc neglects to mention to need to point to this file from the pax-web .cfg file.







--
This message was sent by Atlassian JIRA
(v6.3.4#6332)