Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Does fabric8-karaf-1.1.0.CR2 run? #1992

Closed
tdudgeon opened this issue Jul 12, 2014 · 5 comments
Closed

Does fabric8-karaf-1.1.0.CR2 run? #1992

tdudgeon opened this issue Jul 12, 2014 · 5 comments
Milestone

Comments

@tdudgeon
Copy link

I'm trying fabric8 for the first time, so may be doing everything wrong.
But I download the karaf version from here: http://fabric8.io/gitbook/getStarted.html
Unzipped and ran and get a whole lot of stack traces like this:

Please wait while Fabric8 is loading...
65% [==============================================> ]ERROR: Bundle gravia-runtime-osgi [57] Error starting mvn:org.jboss.gravia/gravia-run
time-osgi/1.1.0.Beta33 (org.osgi.framework.BundleException: Activator start error in bundle gravia-runtime-osgi [57].)
java.lang.UnsupportedClassVersionError: org/jboss/gravia/runtime/osgi/internal/OSGiRuntimeActivator : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2275)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1501)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4576)
at org.apache.felix.framework.Felix.doActivateBundle(Felix.java:2382)
at org.apache.felix.framework.Felix$7.call(Felix.java:2325)
at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2323)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2090)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1317)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Thread.java:662)

The web console is not running after that.
Tried this on Mac and Windoze with same result.
Is something badly broken with the distro?

Tim

@davsclaus
Copy link
Member

Are you using Java8 by any chance? If so currently we only support java7.

But support for java8 comes when we upgrade to Karaf 2.40 when its released.

@tdudgeon
Copy link
Author

No, I've tried on Java6 and Java7 with the same result.

@tdudgeon
Copy link
Author

Sorry, correction, I was running on Java6. I switched to Java7 and it runs OK.

@davsclaus
Copy link
Member

Ah good to know, you can search the web about

Unsupported major.minor version 51.0

And find information that this message means that java 7 is required.

@davsclaus
Copy link
Member

Also if there was still some issue, checking what JAVA_HOME is set to, or check the bin scripts that is used to start fabric may help indicate if a different java was picked up, than you would have thought.

@jstrachan jstrachan added this to the 1.1.0.CR3 milestone Jul 14, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants