Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 536933

Summary: Server components can not be installed on a plain Oxygen
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: ServerAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont, stephane.begaudeau
Version: 6.0.0   
Target Milestone: 6.0.1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/126942
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=71c254037990f335fdec44117f3bf9e03aebd716
Whiteboard:
Bug Depends on:    
Bug Blocks: 536066, 537113    

Description Pierre-Charles David CLA 2018-07-12 03:24:22 EDT
See https://www.eclipse.org/forums/index.php/m/1792144/ for the original report.

It's because our server depends on parts of Jetty, and the version ranges we configured do not seem to match what is available in Oxygen.

Manually adding http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.4.10.v20180503/ to the list of available update sites before installing "fixes" the issue.

Steps to reproduce:
1. Install a fresh Oxygen Committers package.
2. Open "Help > Install new software..." and enter http://download.eclipse.org/sirius/updates/releases/6.0.0/oxygen
3. Select "Sirius Specification Environment", "Sirius Server (Experimental)" and "Sirius Support for Modeling Workflows (Experimental)" and hit Next.
4. The installation of the experimental features fail this message:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Sirius Server (Experimental) 6.0.0.201806111307 (org.eclipse.sirius.server.feature.feature.group 6.0.0.201806111307)
  Missing requirement: Sirius Server Backend 6.0.0.201806111307 (org.eclipse.sirius.server.backend 6.0.0.201806111307) requires 'bundle org.eclipse.jetty.servlets [9.0.0,10.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: Sirius Server (Experimental) 6.0.0.201806111307 (org.eclipse.sirius.server.feature.feature.group 6.0.0.201806111307)
    To: org.eclipse.sirius.server.backend [6.0.0.201806111307]
Comment 1 Stephane Begaudeau CLA 2018-07-13 12:24:26 EDT
Our server feature may need to include the necessary Jetty plugins to fix this issue. This is what we did with Acceleo and Guava back in the days.
Comment 2 Pierre-Charles David CLA 2018-07-25 03:29:12 EDT
After discussing with the team, the "solution" would be to directly embed the Jetty JARs we need inside the Sirius p2 repo, but this could have unforeseen side effects for people who depend on specific (and different) versions of Jetty.

Given that:
* the problem only occurs for Oxygen and not in Photon (which is the reference platform);
* it concerns only early adopters who want to try features of 6.0 which are marked experimental;
* there is an easy workaround,

we will simply document the limitation and workaround in the release notes and announces, but not actually change the packaging.
Comment 3 Eclipse Genie CLA 2018-08-02 03:54:43 EDT
New Gerrit change created: https://git.eclipse.org/r/126942
Comment 5 Pierre-Charles David CLA 2018-08-21 04:51:15 EDT
Limitation and workaround documented in the release notes by b5c1f9020dfd0a7278b85afc291c764696414cb3 and also mentioned in the 6.0.0 and 6.0.1's release pages on the wiki.
Comment 6 Pierre-Charles David CLA 2018-08-21 05:06:38 EDT
Actually, testing shows that while the Workflow and Server features can indeed be installed under Oxygen when adding the appropriate Jetty repository, the result does not work. Given that these are experimental features and Photon is the reference platform, simple document this as a known limitation.
Comment 7 Julien Dupont CLA 2018-08-23 11:37:47 EDT
Verified that the impossible installation with Oxygen is specify in the release note.
Comment 8 Pierre-Charles David CLA 2018-08-27 04:13:59 EDT
Available in Sirius 6.0.1, see https://wiki.eclipse.org/Sirius/6.0.1 for details.