Upgrade Jetty from 7.0.1 to 7.5.4

Description

None

Environment

None
100% Done
Type
Key
Summary
Priority
Story Points
Assignee
Status

Activity

Show:

Neustradamus February 17, 2012 at 7:46 PM
Edited

Marcin Cieślak January 11, 2012 at 6:49 PM

I am running 7.6.0RC0 successfully as well with no changes.
Updating slf was a pain though (due to "jar hell" as they say).

Guus der Kinderen January 6, 2012 at 10:19 PM

I fixed that last bug Daryl reported just now. Openfire now uses Jetty 7.5.4.

Daryl Herzmann January 4, 2012 at 4:46 PM

Guus, I attempted to run ignite with trunk and get this

2012.01.04 10:41:42 org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@12cb94b7: java.io.FileNotFoundException: /sbin/.keystore (No such file or directory) java.io.FileNotFoundException: /sbin/.keystore (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:276) at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:41) at org.eclipse.jetty.http.ssl.SslContextFactory.getKeyStore(SslContextFactory.java:1056) at org.eclipse.jetty.http.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1016) at org.eclipse.jetty.http.ssl.SslContextFactory.doStart(SslContextFactory.java:267) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:593) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.Server.doStart(Server.java:272) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.jivesoftware.openfire.http.HttpBindManager.start(HttpBindManager.java:113) at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startHTTPBindListeners(ConnectionManagerImpl.java:555) at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:168) at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$000(ConnectionManagerImpl.java:84) at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:140) at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:568) at org.jivesoftware.openfire.container.PluginManager.access$800(PluginManager.java:80) at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1077) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

Guus der Kinderen January 1, 2012 at 9:14 PM

According to http://wiki.eclipse.org/Jetty/Reference/SSL_Connectors this version of Jetty prefers configuration via a factory object, rather than on Connectors directly. I've replaced the old code with an implementation that simply re-creates a new factory each invocation. This could be streamlined a bit further, but at least it'll be more future proof (as the old Connector-based configuration is likely to be removed in future versions of Jetty).

Fixed
Created October 6, 2011 at 6:28 PM
Updated October 28, 2020 at 1:26 PM
Resolved January 6, 2012 at 10:19 PM

Flag notifications