Hi,

Java8 will be supported starting from Karaf 3.0.2 and 2.4.0.

Karaf 2.3.6 does not support Java8 (and will never support it).

Regards
JB

On 08/16/2014 12:21 AM, thully wrote:
After evaluating Karaf 3.0.1 and finding too many issues, we recently
upgraded the development branch of our project (Cytoscape) to Karaf 2.3.5.
That seems to work pretty well for us, and also starts/runs on Java 8 at
least well enough for our project to function.

Seeing that Karaf 2.3.6 was just released and fixes a bug that was causing
problems for us before (KARAF-1894), I rebuilt the Karaf custom distribution
in our project (Cytoscape) with Karaf 2.3.6. However, when running on Java
8, this seemed to cause new problems. First of all, when starting the
project, we now get a slew of dependency errors, all referring to sshd like
the following:

ERROR: Bundle org.apache.sshd.core [22] Error starting
mvn:org.apache.sshd/sshd-core/0.12.0 (org.osgi.framework.BundleException:
Unresolved constraint in bundle org.apache.sshd.core [22]: Unable to resolve
22.0: missing requirement [22.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5)))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.sshd.core [22]: Unable to resolve 22.0: missing requirement
[22.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5))
        at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:745)

In addition to that, Pax Exam tests are failing when running on Java 8 using
a Karaf 2.3.6 container.

Is this a known issue, and is there a workaround? It seems to happen even
when downloading the stock Karaf distribution from karaf.apache.org and
running bin/karaf from there. From here, it looks like there is an issue
involving the new sshd and Java 8 (or the Java 8 profile in jre.properties).
This issue never occurs on Java 7 or Karaf 2.3.5/3.0.1, though 3.0.1 has
issues of its own (broken console on Java 8, making extra system bundles in
user's .m2 repository) that make it undesirable.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Problems-with-Karaf-2-3-6-on-Java-8-tp4034796.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to