On 9/12/13 11:56 , Christopher BROWN wrote:
Hello,

An application using Felix 3.2.2 on MacOS X has started failing with the
following exception:

org.osgi.framework.BundleException: Unresolved constraint in bundle
system.sdk-project [5]: Unable to resolve 5.0: missing requirement [5.0]
package; (package=javax.sql)

The application is started from a shell script that includes the following
(standard) MacOS X command:

/usr/libexec/java_home -d64 -v 1.6+

It's now locating:
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home

Would I be correct in guessing that Felix 3.2.2 has no explicit support for
JDK8 (would make sense), and that it has no fallback mechanism so that it
can at least export packages from prior Java releases?  As in, now that
there's Java 8, it's not exporting stuff it knew about in Java 6...

What can I do about that to fix it, apart from adding a hard-coded
dependency on Java 6 (which is EOL) or upgrading Felix?

The default.properties file inside the felix.jar contains the packages that should be exported by the framework for a given Java platform. The issue is that it doesn't have a property for Java 8 so the framework doesn't export any JRE packages.

You can just copy the Java 7 property and use it for Java 8. You can copy the value from default.properties, but specify it in conf/config.properties so you don't need to edit the JAR file.

-> richard


Thanks,
Christopher



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to