Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven's jetty plugin SSL configuration issue
    text
    copied!<p>I'm using Jetty's plugin for Maven, version 7.0.0.pre5, but I have issues configuring it to have a SSL Connector. Whenever I start the application, it fails stating that the requested implementation is not found.</p> <p>This is the plugin's configuration within my pom.xml</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt; &lt;version&gt;7.0.0.pre5&lt;/version&gt; &lt;configuration&gt; &lt;connectors&gt; &lt;connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"&gt; &lt;port&gt;8080&lt;/port&gt; &lt;/connector&gt; &lt;connector implementation="org.mortbay.jetty.ssl.SslSelectChannelConnector"&gt; &lt;port&gt;8443&lt;/port&gt; &lt;keystore&gt;src/test/resources/server.keystore&lt;/keystore&gt; &lt;keyPassword&gt;123456&lt;/keyPassword&gt; &lt;password&gt;123456&lt;/password&gt; &lt;/connector&gt; &lt;/connectors&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>Attempting to run it with mvn jetty:run gives the following output:</p> <pre><code>[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.mortbay.jetty:jetty-maven-plugin:7.0.0.pre5 Cause: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.mortbay.jetty.ssl.SslSelectChannelConnector' cannot be loaded </code></pre> <p>Using org.mortbay.jetty.ssl.SslSocketConnector renders the same result.</p> <p>It's really weird, since, according to Jetty's own documentation, both classes exists and that's their correct name (notice in Jetty 6 the package security was used instead of ssl).</p> <p>Reference: <a href="http://www.jarvana.com/jarvana/view/org/mortbay/jetty/jetty-assembly/7.0.0.pre5/jetty-assembly-7.0.0.pre5-site-component.jar!/jetty-7.0.0.pre5/jetty-distribution-7.0.0.pre5-site-component/target/site/apidocs/org/mortbay/jetty/ssl/SslSocketConnector.html" rel="nofollow noreferrer">http://www.jarvana.com/jarvana/view/org/mortbay/jetty/jetty-assembly/7.0.0.pre5/jetty-assembly-7.0.0.pre5-site-component.jar!/jetty-7.0.0.pre5/jetty-distribution-7.0.0.pre5-site-component/target/site/apidocs/org/mortbay/jetty/ssl/SslSocketConnector.html</a></p> <p><a href="http://www.jarvana.com/jarvana/view/org/mortbay/jetty/jetty-assembly/7.0.0.pre5/jetty-assembly-7.0.0.pre5-site-component.jar!/jetty-7.0.0.pre5/jetty-distribution-7.0.0.pre5-site-component/target/site/apidocs/org/mortbay/jetty/ssl/SslSelectChannelConnector.html" rel="nofollow noreferrer">http://www.jarvana.com/jarvana/view/org/mortbay/jetty/jetty-assembly/7.0.0.pre5/jetty-assembly-7.0.0.pre5-site-component.jar!/jetty-7.0.0.pre5/jetty-distribution-7.0.0.pre5-site-component/target/site/apidocs/org/mortbay/jetty/ssl/SslSelectChannelConnector.html</a></p> <p>Any ideas are welcome.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload