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

Bug 336036

Summary: [server] Orion doesn't run on 1.5 VM
Product: [ECD] Orion Reporter: Prakash Rangaraj <prakash>
Component: ClientAssignee: John Arthorne <john.arthorne>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: aniefer, bokowski, john.arthorne, n.a.edgar, remy.suen, Szymon.Brandys
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Prakash Rangaraj CLA 2011-02-02 01:16:57 EST
If no 1.6 specific constructs are used, Orion should be run with a 1.5 VM
Comment 1 Boris Bokowski CLA 2011-02-02 02:01:19 EST
Andrew, do you know which projects require 1.6 currently? Do they still compile when we target them to 1.5?
Comment 2 Prakash Rangaraj CLA 2011-02-02 02:55:50 EST
From the log, at least 4 of the bundles "need" 1.6:

org.osgi.framework.BundleException: The bundle "org.eclipse.orion.server.user.securestorage_0.1.0.v20110128-1437 [65]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6

org.osgi.framework.BundleException: The bundle "org.eclipse.orion.server.servlets_0.1.0.v20110127-1820 [64]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6

org.osgi.framework.BundleException: The bundle "org.eclipse.orion.server.search_0.2.0.v20110124-1700 [63]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.orion.server.servlets; bundle-version="0.1.0"

org.osgi.framework.BundleException: The bundle "org.eclipse.orion.server.configurator_0.2.0.v20110126-1025 [59]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Comment 3 Szymon Brandys CLA 2011-02-02 07:42:14 EST
These are mostly authentication and user service bundles. I'll change EE to 1.5 for them.
Comment 4 Szymon Brandys CLA 2011-02-02 10:17:21 EST
I fixed the Orion bundles. However there non-Orion bundles with 1.6 EE set:
- nekohtml
- openid4java
- org.apache.solr.client.solrj
- org.apache.solr.common
- org.apache.solr.core

The first two are in org.eclipse.orion.server/dependencies. We bundleized nekohtml and openid4java some time ago and set the EE to 1.6. I think we should just modify the manifest and rebuild the jars. Both work fine with EE 1.5.

The three others are taken from Orion and they have EE set to 1.6. I'm not sure what we can do about it.
Comment 5 Szymon Brandys CLA 2011-02-02 10:23:10 EST
(In reply to comment #4)
> The three others are taken from Orion and they have EE set to 1.6. I'm not sure
> what we can do about it.

org.apache.solr.* 1.3.0 on Orbit have EE 1.5. I'm not sure if 1.3.0 is fine for us.
Comment 6 John Arthorne CLA 2011-02-02 10:51:50 EST
And why do we care about Java 5? It's not even a reference platform for Eclipse 3.7, and end of life for Java 5 was over a year ago:

http://www.oracle.com/technetwork/java/eol-135779.html

I would actually like to move up to a *newer* Solr at some point to use their new auto-completion support.
Comment 7 Andrew Niefer CLA 2011-02-02 10:53:18 EST
See bug 334598, org.eclipse.orion.server.servlets does contain some 1.6 code, this can be easily fixed to target 1.5.  At the time it was simpler to just use 1.6 since we already had a number of bundles at that level.
Comment 8 Szymon Brandys CLA 2011-02-02 11:43:02 EST
org.apache.solt.* bundles version 1.4.0 do use Java 1.6 API e.g.

import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;

So if we want to run on 1.5, we should have dependencies to org.apache.solt.* 1.3.0. 

Mentioned apache bundles are required by org.eclipse.orion.server.search, so I'm moving the bug to John now.
Comment 9 John Arthorne CLA 2011-02-03 12:35:54 EST
We don't plan to support anything earlier than Java 6. Get a modern VM.