aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/server/Constants.java20
-rw-r--r--server/src/main/java/com/vaadin/server/DefaultDeploymentConfiguration.java3
2 files changed, 23 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/Constants.java b/server/src/main/java/com/vaadin/server/Constants.java
index 754e52b70a..07581e4913 100644
--- a/server/src/main/java/com/vaadin/server/Constants.java
+++ b/server/src/main/java/com/vaadin/server/Constants.java
@@ -102,6 +102,26 @@ public interface Constants {
+ "VaadinService if you're not using custom class loader.\n"
+ "NullPointerExceptions will be thrown later."
+ "=================================================================";
+
+ static final String UNMAINTAINED_VERSION_WARNING = "\n"
+ + " .::::::::::::::::::::::: WARNING :::::::::::::::::::::::. \n"
+ + "::' '::\n"
+ + ":: ::\n"
+ + ":: P L E A S E N O T E ::\n"
+ + ":: ::\n"
+ + ":: ::\n"
+ + ":: This is an unmaintained version of Vaadin Framework ::\n"
+ + ":: with known security issues. ::\n"
+ + ":: ::\n"
+ + ":: To upgrade to a maintained version, go to ::\n"
+ + ":: ::\n"
+ + ":: https://vaadin.com/vaadin-8-extended-maintenance ::\n"
+ + ":: ::\n"
+ + ":: ::\n"
+ + "::. .::\n"
+ + " '::::::::::::::::::::::: WARNING :::::::::::::::::::::::' \n"
+ + "\n";
+
static final String URL_PARAMETER_THEME = "theme";
diff --git a/server/src/main/java/com/vaadin/server/DefaultDeploymentConfiguration.java b/server/src/main/java/com/vaadin/server/DefaultDeploymentConfiguration.java
index eee17f11e2..eee351b630 100644
--- a/server/src/main/java/com/vaadin/server/DefaultDeploymentConfiguration.java
+++ b/server/src/main/java/com/vaadin/server/DefaultDeploymentConfiguration.java
@@ -265,12 +265,15 @@ public class DefaultDeploymentConfiguration
/**
* Log a warning if Vaadin is not running in production mode.
+ *
+ * Also show a warning about unmaintained version.
*/
private void checkProductionMode() {
productionMode = getApplicationOrSystemProperty(
Constants.SERVLET_PARAMETER_PRODUCTION_MODE, "false")
.equals("true");
if (!productionMode) {
+ getLogger().warning(Constants.UNMAINTAINED_VERSION_WARNING);
getLogger().warning(Constants.NOT_PRODUCTION_MODE_INFO);
}
}