| Summary: | [server] Orion doesn't run on 1.5 VM | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Prakash Rangaraj <prakash> |
| Component: | Client | Assignee: | 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
Andrew, do you know which projects require 1.6 currently? Do they still compile when we target them to 1.5? 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 These are mostly authentication and user service bundles. I'll change EE to 1.5 for them. 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. (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. 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. 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. 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. We don't plan to support anything earlier than Java 6. Get a modern VM. |