[
https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000317#comment-13000317
]
Richard S. Hall commented on FELIX-2864:
----------------------------------------
We don't have default properties for JDK 7 yet...we'll need a complete package
list for JRE-1.7 and then add it to default.properties in the framework JAR
file.
Something looks odd above, though, since it doesn't seem like you should be
using org.osgi.core as a bundle at all...
> Failure to start framework on JDK 7
> -----------------------------------
>
> Key: FELIX-2864
> URL: https://issues.apache.org/jira/browse/FELIX-2864
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-3.0.8
> Environment: Ubuntu 10.04, but also Windows. Background:
> http://netbeans.org/bugzilla/show_bug.cgi?id=195862
> Reporter: Jesse Glick
> Priority: Critical
> Fix For: framework-3.2.0
>
>
> {{mvn -DarchetypeVersion=1.2 -Darchetype.interactive=false -DgroupId=test
> -DarchetypeArtifactId=osgi-archetype
> -DarchetypeRepository=http://repo1.maven.org/maven2/ -Dversion=1.0-SNAPSHOT
> -DarchetypeGroupId=org.codehaus.mojo.archetypes -Dpackage=test
> -DartifactId=test --batch-mode archetype:generate}} and then {{mvn
> -Prun-on-felix package antrun:run}} using JDK 6. It works. Now run with JDK
> 7; it fails:
> {noformat}
> ERROR: Bundle org.osgi.core [11] Error starting
> file:/home/jglick/.m2/repository/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0.jar
> (org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.osgi.core [11]: Unable to resolve 11.0: missing requirement [11.0]
> package; (package=javax.security.auth.x500))
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.osgi.core [11]: Unable to resolve 11.0: missing requirement [11.0]
> package; (package=javax.security.auth.x500)
> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
> at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> at java.lang.Thread.run(Thread.java:732)
> {noformat}
> JDK 7 does contain this package.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira