[DOCU-2650] Clarify required changes in Vaadin configuration for Magnolia 6.2.20 Created: 08/Feb/23  Updated: 14/Feb/23  Resolved: 14/Feb/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Sebastian Kleine Assignee: Adrian Brooks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation page URL: https://docs.magnolia-cms.com/product-docs/6.2/Releases/Release-notes-for-Magnolia-CMS-6.2.20.html

 Description   

I spent most of the day trying to figure out, why updating Magnolia to 6.2.20 or later versions always gave me a errors like this:

com.vaadin.pro.licensechecker.VaadinComIntegration.openBrowserAndWaitForKey Opening system browser to validate license. If the browser is not opened, please open https://vaadin.com/pro/validate-license?connect=1e55726b-a3a8-4e84-8ce0-6c5cd26cd1c1&productName=vaadin-framework&productVersion=8.15.2 manually

SEVERE [http-nio-8080-exec-10] com.vaadin.pro.licensechecker.VaadinComIntegration.openBrowserAndWaitForKey You are running in a headless environment. Please open https://vaadin.com/pro/validate-license?connect=1e55726b-a3a8-4e84-8ce0-6c5cd26cd1c1&productName=vaadin-framework&productVersion=8.15.2 in any browser to validate the license.

ERROR info.magnolia.cms.filters.ServletDispatchingFilter: Unable to load servlet class com.vaadin.server.VaadinServlet : Unable to validate subscription. Please go to https://vaadin.com/pro/validate-license to check that your subscription is active. For troubleshooting steps, see https://vaadin.com/licensing-faq-and-troubleshooting.

java.lang.RuntimeException: Unable to validate subscription. Please go to https://vaadin.com/pro/validate-license to check that your subscription is active. For troubleshooting steps, see https://vaadin.com/licensing-faq-and-troubleshooting.

There is a very small hint in 6.2.20 release notes about "license for productionMode=false required!". But no hint given how to solve this in a custom Magnolia setup. Even the above mentioned errors did not produce any search results. Can you please improve the documentation to include the hint, that you need to add the following to your custom webapp web.xml. That would have saved me a lot of time.

  <context-param>
    <description>Vaadin production mode</description>
    <param-name>productionMode</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <param-name>heartbeatInterval</param-name>
    <param-value>90</param-value>
  </context-param>

Generated at Mon Feb 12 01:29:01 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.