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
{{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