Hi,
On Fri, Jan 22, 2016 at 11:22 PM, Mark Thomas <ma...@apache.org> wrote: > On 21/01/2016 12:38, Mark Thomas wrote: > > The proposed Apache Tomcat 9.0.0.M2 release is now available for voting. > > > > This is the second milestone release for the 9.0.x branch. It should be > > noted that, as a milestone release: > > - Servlet 4.0 is not finalised > > - The EGs have not started work on JSP 2.4, EL 3.1 or WebSocket 1.2/2.0 > > > > The major changes compared to the 9.0.0.M1 branch are: > > - Ability to use OpenSSL with JSSE configuration > > - Update to Tomcat-native 1.2.4 to pick up Windows binaries based on > > OpenSSL 1.0.2e > > - Allow HTTP redirects to be relative > > - Lots of bug fixes > > > > For full details, see the changelog: > > > http://svn.us.apache.org/repos/asf/tomcat/trunk/webapps/docs/changelog.xml > > > > It can be obtained from: > > https://dist.apache.org/repos/dist/dev/tomcat/tomcat-9/v9.0.0.M2/ > > The Maven staging repo is: > > https://repository.apache.org/content/repositories/orgapachetomcat-1059/ > > The svn tag is: > > http://svn.apache.org/repos/asf/tomcat/tags/TOMCAT_9_0_0_M2/ > > > > The proposed 9.0.0.M2 release is: > > [ ] Broken - do not release > > [X] Alpha - go ahead and release as 9.0.0.M2 > > Unit tests pass. > Simple smoke tests pass. > > Mark > > Here 9.0.0.M2 fails to start the AprEndpoint. 3-Jan-2016 17:36:58.787 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.library.path=/usr/local/apr/lib/ 23-Jan-2016 17:36:58.787 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/tmp/tc9.0.0.M2/apache-tomcat-9.0.0.M2 23-Jan-2016 17:36:58.787 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/tmp/tc9.0.0.M2/apache-tomcat-9.0.0.M2 23-Jan-2016 17:36:58.788 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp/tc9.0.0.M2/apache-tomcat-9.0.0.M2/temp 23-Jan-2016 17:36:58.788 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.4 using APR version 1.5.2. 23-Jan-2016 17:36:58.788 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 23-Jan-2016 17:36:58.791 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2e 3 Dec 2015) 23-Jan-2016 17:36:58.891 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"] 23-Jan-2016 17:36:58.899 INFO [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The ["https-apr-8443"] connector has been configured to support negotiation to [h2] via ALPN 23-Jan-2016 17:36:58.900 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-apr-8443"] 23-Jan-2016 17:36:58.900 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["https-apr-8443"] java.lang.NullPointerException at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:366) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:790) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:547) at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:66) at org.apache.catalina.connector.Connector.initInternal(Connector.java:1010) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:855) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.startup.Catalina.load(Catalina.java:606) at org.apache.catalina.startup.Catalina.load(Catalina.java:629) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494) Line 366 is: for (String protocol : sslHostConfig.getEnabledProtocols()) { sshHostConfig is used earlier, so it seems the result of #getEnabledProtocols() is null. My conf/server.conf looks like: <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig honorCipherOrder="false" > <Certificate certificateKeyFile="/tmp/tc9.0.0.M2/private-key.pem" certificateFile="/tmp/tc9.0.0.M2/cert.pem" type="RSA" /> </SSLHostConfig> </Connector> I just uncommented it and changed the paths to the certificate files. I run Ubuntu 15.10, Apr 1.5.2, Openssl 1.0.2e, Tomcat Native 1.2.4. Please let me know if you need more information! Martin > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >