Merge branch 'jetty-9.4.x'

This commit is contained in:
Joakim Erdfelt 2016-05-02 09:53:02 -07:00
commit 114ac79808
40 changed files with 110 additions and 161 deletions

View File

@ -1,9 +1,6 @@
[description] [description]
Enables use of the apache implementation of JSP Enables use of the apache implementation of JSP
[name]
apache-jsp
[lib] [lib]
lib/apache-jsp/*.jar lib/apache-jsp/*.jar

View File

@ -1,8 +1,5 @@
[description] [description]
Enables the apache version of JSTL Enables the apache version of JSTL
[name]
apache-jstl
[lib] [lib]
lib/apache-jstl/*.jar lib/apache-jstl/*.jar

View File

@ -1,6 +1,3 @@
[name]
protonego-boot
[files] [files]
http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/8.1.7.v20160121/alpn-boot-8.1.7.v20160121.jar|lib/alpn/alpn-boot-8.1.7.v20160121.jar http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/8.1.7.v20160121/alpn-boot-8.1.7.v20160121.jar|lib/alpn/alpn-boot-8.1.7.v20160121.jar

View File

@ -1,6 +1,3 @@
[name]
protonego-boot
[files] [files]
http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/8.1.8.v20160420/alpn-boot-8.1.8.v20160420.jar|lib/alpn/alpn-boot-8.1.8.v20160420.jar http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/8.1.8.v20160420/alpn-boot-8.1.8.v20160420.jar|lib/alpn/alpn-boot-8.1.8.v20160420.jar

View File

@ -246,6 +246,8 @@ The ALPN implementation, relying on modifications of OpenJDK classes, updates ev
|1.8.0u73 |8.1.7.v20160121 |1.8.0u73 |8.1.7.v20160121
|1.8.0u74 |8.1.7.v20160121 |1.8.0u74 |8.1.7.v20160121
|1.8.0u77 |8.1.7.v20160121 |1.8.0u77 |8.1.7.v20160121
|1.8.0u91 |8.1.7.v20160121
|1.8.0u92 |8.1.8.v20160420
|============================= |=============================
[[alpn-build]] [[alpn-build]]

View File

@ -1,15 +0,0 @@
[description]
Enables session storage on a remote GCloudDataStore service.
[name]
gcloud-remote
[xml]
etc/jetty-gcloud-remote.xml
[ini-template]
#jetty.gcloudSession.projectId=
#jetty.gcloudSession.p12File=
#jetty.gcloudSession.serviceAccount=
#jetty.gcloudSession.password=

View File

@ -1,9 +1,5 @@
[description] [description]
Enables session storage when running inside the cloud. Enables session storage when running inside the cloud.
[name]
gcloud-embedded
[xml] [xml]
etc/jetty-gcloud-embedded.xml etc/sessions/gcloud/embedded.xml

View File

@ -1,9 +1,5 @@
[description] [description]
Enables session storage on a local GCloudDataStore dev server. Enables session storage on a local GCloudDataStore dev server.
[name]
gcloud-local
[xml] [xml]
etc/jetty-gcloud-local.xml etc/sessions/gcloud/local.xml

View File

@ -0,0 +1,6 @@
[description]
Enables session storage on a remote GCloudDataStore service.
[xml]
etc/sessions/gcloud/remote.xml

View File

@ -1,14 +1,14 @@
[description] [description]
Enables GCloudDatastore session management. Enables GCloudDatastore session management.
[name] [provides]
gcloud-session-store session-store
[depend] [depends]
annotations annotations
webapp webapp
sessions sessions
gcloud-${type} sessions/gcloud/${type}
[files] [files]
maven://com.google.gcloud/gcloud-java-datastore/0.0.7|lib/gcloud/gcloud-java-datastore-0.0.7.jar maven://com.google.gcloud/gcloud-java-datastore/0.0.7|lib/gcloud/gcloud-java-datastore-0.0.7.jar
@ -47,23 +47,24 @@ maven://com.google.apis/google-api-services-datastore/v1beta2-rev23-1.19.0|lib/g
lib/jetty-gcloud-session-manager-${jetty.version}.jar lib/jetty-gcloud-session-manager-${jetty.version}.jar
lib/gcloud/*.jar lib/gcloud/*.jar
[xml]
sessions/gcloud/session-store.xml
[license] [license]
GCloudDatastore is an open source project hosted on Github and released under the Apache 2.0 license. GCloudDatastore is an open source project hosted on Github and released under the Apache 2.0 license.
https://github.com/GoogleCloudPlatform/gcloud-java https://github.com/GoogleCloudPlatform/gcloud-java
http://www.apache.org/licenses/LICENSE-2.0.html http://www.apache.org/licenses/LICENSE-2.0.html
[ini] [ini]
type=remote type=remote
[ini-template] [ini-template]
#type=local
#type=embedded
## GCloudDatastore Session config ## GCloudDatastore Session config
## Remote datastore
type=remote
## The gcloud projectId ## The gcloud projectId
## Set this property to connect to remote gcloud datastore. ## Set this property to connect to remote gcloud datastore.
## Or, set the DATASTORE_DATASET System property/env variable instead. ## Or, set the DATASTORE_DATASET System property/env variable instead.
@ -80,3 +81,11 @@ type=remote
## The password (can be obfuscated). ## The password (can be obfuscated).
## Set this property only when connecting to remote gcloud datastore ## Set this property only when connecting to remote gcloud datastore
#jetty.gcloudSession.password= #jetty.gcloudSession.password=
## Local datastore
#type=local
## Embedded datastore
#type=embedded

View File

@ -1,10 +0,0 @@
[description]
Enable use of DefaultCache for session data storage
[name]
infinispan-session-default
[xml]
etc/jetty-default-infinispan-session-store.xml

View File

@ -1,12 +1,12 @@
[description] [description]
Enables session data store in a remote Infinispan cache Enables session data store in a remote Infinispan cache
[name] [provides]
infinispan-session-store session-store
[depend] [depend]
session session
infinispan-session-${cache-type} sessions/infinispan/${cache-type}
[files] [files]
maven://org.infinispan/infinispan-core/7.1.1.Final|lib/infinispan/infinispan-core-7.1.1.Final.jar maven://org.infinispan/infinispan-core/7.1.1.Final|lib/infinispan/infinispan-core-7.1.1.Final.jar
@ -19,7 +19,6 @@ maven://org.jboss.logging/jboss-logging/3.1.2.GA|lib/infinispan/jboss-logging-3.
lib/jetty-infinispan-${jetty.version}.jar lib/jetty-infinispan-${jetty.version}.jar
lib/infinispan/*.jar lib/infinispan/*.jar
[license] [license]
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license. Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
http://infinispan.org/ http://infinispan.org/
@ -30,6 +29,8 @@ http://www.apache.org/licenses/LICENSE-2.0.html
cache-type=default cache-type=default
[ini-template] [ini-template]
cache-type=default
#cache-type=remote #cache-type=remote
#jetty.session.remoteInfinispanCache.name=sessions #jetty.session.remoteInfinispanCache.name=sessions
#jetty.session.infinispanIdleTimeout.seconds=0 #jetty.session.infinispanIdleTimeout.seconds=0

View File

@ -0,0 +1,6 @@
[description]
Enable use of DefaultCache for session data storage
[xml]
etc/sessions/infinispan/default.xml

View File

@ -1,12 +1,9 @@
[description] [description]
Enable use of HotRod remote cache for session data storage Enable use of HotRod remote cache for session data storage
[name]
infinispan-session-remote
[files] [files]
https://raw.githubusercontent.com/eclipse/jetty.project/master/jetty-infinispan/src/main/infinispan-resources/hotrod-client.properties?id=${jetty.tag.version}|resources/hotrod-client.properties https://raw.githubusercontent.com/eclipse/jetty.project/master/jetty-infinispan/src/main/infinispan-resources/hotrod-client.properties?id=${jetty.tag.version}|resources/hotrod-client.properties
[xml] [xml]
etc/jetty-remote-infinispan-session-store.xml etc/sessions/infinispan/remote.xml

View File

@ -1,8 +1,8 @@
[description] [description]
Enables NoSql session management with a MongoDB driver. Enables NoSql session management with a MongoDB driver.
[name] [provides]
mongo-session-store session-store
[depend] [depend]
sessions sessions
@ -14,18 +14,15 @@ maven://org.mongodb/mongo-java-driver/2.6.1|lib/nosql/mongo-java-driver-2.6.1.ja
lib/jetty-nosql-${jetty.version}.jar lib/jetty-nosql-${jetty.version}.jar
lib/nosql/*.jar lib/nosql/*.jar
[license] [license]
The java driver for the MongoDB document-based database system is hosted on GitHub and released under the Apache 2.0 license. The java driver for the MongoDB document-based database system is hosted on GitHub and released under the Apache 2.0 license.
http://www.mongodb.org/ http://www.mongodb.org/
http://www.apache.org/licenses/LICENSE-2.0.html http://www.apache.org/licenses/LICENSE-2.0.html
[xml] [xml]
etc/jetty-mongo-session-store.xml etc/sessions/mongo/session-store.xml
[ini-template]
[ini]
#jetty.session.dbName=HttpSessions #jetty.session.dbName=HttpSessions
#jetty.session.collectionName=jettySessions #jetty.session.collectionName=jettySessions
#jetty.session.gracePeriod.seconds=3600 #jetty.session.gracePeriod.seconds=3600

View File

@ -1,16 +0,0 @@
[description]
Always in memory session objects.
[name]
default-session-cache
[xml]
etc/jetty-default-session-cache.xml
[ini-template]
#jetty.session.idlePassivationTimeout.seconds=0
#jetty.session.passivateOnComplete=false

View File

@ -1,21 +0,0 @@
[description]
Enables session storage in files.
[name]
file-session-store
[xml]
etc/jetty-file-session-store.xml
[depend]
sessions
[ini-template]
#jetty.session.storeDir=
#jetty.session.deleteUnrestorableFiles=false

View File

@ -0,0 +1,18 @@
[description]
Enable first level session cache in ConcurrentHashMap.
If not enabled, sessions will use a HashSessionCache by default, so enabling
via this module is only needed if the configuration properties need to be
changed.
[provides]
session-cache
[depends]
sessions
[xml]
etc/sessions/hash-session-cache.xml
[ini-template]
#jetty.session.idlePassivationTimeout.seconds=0
#jetty.session.passivateOnComplete=false

View File

@ -0,0 +1,19 @@
[description]
Enables session persistent storage in files.
[provides]
session-store
[depends]
sessions
[xml]
etc/sessions/file/session-store.xml
[files]
sessions/
[ini-template]
jetty.session.storeDir=${jetty.base}/sessions
#jetty.session.deleteUnrestorableFiles=false

View File

@ -1,27 +1,20 @@
[description] [description]
Enables JDBC session storage. Enables JDBC peristent/distributed session storage.
[name]
jdbc-session-store
[xml]
etc/jetty-jdbc-session-store.xml
[provides]
session-store
[depend] [depend]
sessions sessions
sessions/jdbc/${db-connection-type} sessions/jdbc/${db-connection-type}
[xml]
etc/sessions/jdbc/session-store.xml
[ini] [ini]
db-connection-type=datasource db-connection-type=datasource
[ini-template]
## ##
##JDBC Session properties ##JDBC Session properties
## ##
@ -30,15 +23,15 @@ db-connection-type=datasource
#jetty.session.deleteUnloadables=false #jetty.session.deleteUnloadables=false
#jetty.session.loadAttempts=-1 #jetty.session.loadAttempts=-1
## Connection type:Datasource
db-connection-type=datasource
#jetty.session.datasourceName=/jdbc/sessions
## Connection type:driver ## Connection type:driver
#db-connection-type=driver #db-connection-type=driver
#jetty.session.driverClass= #jetty.session.driverClass=
#jetty.session.driverUrl= #jetty.session.driverUrl=
## Connection type:Datasource
#db-connection-type=datasource
#jetty.session.datasourceName=/jdbc/sessions
## Session table schema ## Session table schema
#jetty.sessionTableSchema.accessTimeColumn=accessTime #jetty.sessionTableSchema.accessTimeColumn=accessTime
#jetty.sessionTableSchema.contextPathColumn=contextPath #jetty.sessionTableSchema.contextPathColumn=contextPath
@ -47,7 +40,7 @@ db-connection-type=datasource
#jetty.sessionTableSchema.expiryTimeColumn=expiryTime #jetty.sessionTableSchema.expiryTimeColumn=expiryTime
#jetty.sessionTableSchema.lastAccessTimeColumn=lastAccessTime #jetty.sessionTableSchema.lastAccessTimeColumn=lastAccessTime
#jetty.sessionTableSchema.lastSavedTimeColumn=lastSavedTime #jetty.sessionTableSchema.lastSavedTimeColumn=lastSavedTime
#jetty.sessionTableSchema.idColumn="sessionId #jetty.sessionTableSchema.idColumn=sessionId
#jetty.sessionTableSchema.lastNodeColumn=lastNode #jetty.sessionTableSchema.lastNodeColumn=lastNode
#jetty.sessionTableSchema.virtualHostColumn=virtualHost #jetty.sessionTableSchema.virtualHostColumn=virtualHost
#jetty.sessionTableSchema.maxIntervalColumn=maxInterval #jetty.sessionTableSchema.maxIntervalColumn=maxInterval

View File

@ -1,18 +1,17 @@
[description] [description]
Enables session id management and scavenging. The session management. By enabling this module, it allows
session management to be configured via the ini templates
created or by enabling other session-cache or session-store
[name] modules. Without this module enabled, the server may still
sessions use sessions, but their management cannot be configured.
[depends]
server
[xml] [xml]
etc/jetty-sessions.xml etc/sessions/id-manager.xml
[ini-template] [ini-template]
## The name to uniquely identify this server instance ## The name to uniquely identify this server instance
#jetty.sessionIdManager.workerName=node1 #jetty.sessionIdManager.workerName=node1

View File

@ -1,9 +1,5 @@
[description] [description]
JDBC Datasource connections for session storage JDBC Datasource connections for session storage
[name]
datasource
[xml] [xml]
etc/jetty-jdbc-session-store-datasource.xml etc/sessions/jdbc/datasource.xml

View File

@ -1,9 +1,5 @@
[description] [description]
JDBC Driver connections for session storage JDBC Driver connections for session storage
[name]
driver
[xml] [xml]
etc/jetty-jdbc-session-store-driver.xml etc/sessions/jdbc/driver.xml

View File

@ -3,9 +3,6 @@ Enables a TLS(SSL) Connector on the server.
This may be used for HTTPS and/or HTTP2 by enabling This may be used for HTTPS and/or HTTP2 by enabling
the associated support modules. the associated support modules.
[name]
ssl
[depend] [depend]
server server

View File

@ -370,7 +370,10 @@ public class Server extends HandlerWrapper implements Attributes
LOG.info("jetty-" + getVersion()); LOG.info("jetty-" + getVersion());
if (!Jetty.STABLE) if (!Jetty.STABLE)
{
LOG.warn("THIS IS NOT A STABLE RELEASE! DO NOT USE IN PRODUCTION!"); LOG.warn("THIS IS NOT A STABLE RELEASE! DO NOT USE IN PRODUCTION!");
LOG.warn("Download a stable release from http://download.eclipse.org/jetty/");
}
HttpGenerator.setJettyVersion(HttpConfiguration.SERVER_VERSION); HttpGenerator.setJettyVersion(HttpConfiguration.SERVER_VERSION);
MultiException mex=new MultiException(); MultiException mex=new MultiException();

View File

@ -2,9 +2,6 @@
Enable spring configuration processing so all jetty style Enable spring configuration processing so all jetty style
xml files can optionally be written as spring beans xml files can optionally be written as spring beans
[name]
spring
[depend] [depend]
server server

View File

@ -33,16 +33,11 @@ public class Jetty
VERSION = pkg.getImplementationVersion(); VERSION = pkg.getImplementationVersion();
else else
VERSION = System.getProperty("jetty.version", "9.4.z-SNAPSHOT"); VERSION = System.getProperty("jetty.version", "9.4.z-SNAPSHOT");
POWERED_BY="<a href=\"http://eclipse.org/jetty\">Powered by Jetty:// "+VERSION+"</a>"; POWERED_BY="<a href=\"http://eclipse.org/jetty\">Powered by Jetty:// "+VERSION+"</a>";
boolean stable=true; // Show warning when RC# or M# is in version string
for (char c: VERSION.toCharArray()) STABLE = !VERSION.matches("^.*\\.(RC|M)[0-9]+$");
{
if (c!='.' && !Character.isDigit(c))
stable=false;
}
STABLE=stable;
} }
private Jetty() private Jetty()