Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty-maven-plugin ssl problem for version 9.0.1.v20130408

You have a lot to change.

For example:
These 2 classes do not exist in Jetty 9:

  org.eclipse.jetty.server.nio.SelectChannelConnector
  org.eclipse.jetty.server.ssl.SslSocketConnector

This change was made to support all of the next gen protocols (SPDY/2, SPDY/3, and soon HTTP/2.0).

Jetty 9 now has a ServerConnector with options underneath.
http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#configuring-jetty-container
The default distribution has examples of ways to configure this.

The Common HTTP configuration object.
The HTTP connection for the ServerConnector.
The HTTPS connection for the ServerConnector.
The SSL Certificate configuration for HTTPS and SPDY.
The SPDY + HTTPS connection for the ServerConnector.


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts


On Fri, Apr 12, 2013 at 7:32 AM, pether sorling <pether.sorling@xxxxxxxxx> wrote:
Hi all,

Currently using jetty 8 and start jetty with jetty-maven-plugin as below.

--
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>8.1.10.v20130312</version>
        <configuration>
          <connectors>
            <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
              <port>8080</port>
              <maxIdleTime>60000</maxIdleTime>
            </connector>
            <connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector">
              <port>8443</port>
              <maxIdleTime>60000</maxIdleTime>
              <keystore>jetty-keystore</keystore>
              <password>pwd</password>
              <keyPassword>pwd</keyPassword>
              <truststore>jetty-keystore</truststore>
              <trustPassword>pwd</trustPassword>
            </connector>
          </connectors>
          <stopPort>9966</stopPort>
          <stopKey>stop</stopKey>
          <scanIntervalSeconds>0</scanIntervalSeconds>
          <webAppConfig>
            <contextPath>/</contextPath>
          </webAppConfig>
        </configuration>
      </plugin>
---

I want to upgrade to jetty 9 but when I start up with the same config but changes

--
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.0.1.v20130408</version>
--

the application starts up on port 8080 but ignores any ssl config.

So anybody that has a working jetty-maven-plugin ssl config for  jetty 9.x ?

Best regards
Pether







_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top