You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jesse Glick (JIRA)" <ji...@apache.org> on 2011/03/07 20:02:59 UTC

[jira] Closed: (FELIX-2864) [Framework] Add package profile for JDK7 to default properties

     [ https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Glick closed FELIX-2864.
------------------------------


Revision 1078870 seems to fix things when I use 3.1.0-SNAPSHOT in the test project.

> [Framework] Add package profile for JDK7 to default properties
> --------------------------------------------------------------
>
>                 Key: FELIX-2864
>                 URL: https://issues.apache.org/jira/browse/FELIX-2864
>             Project: Felix
>          Issue Type: Improvement
>          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
>            Assignee: Richard S. Hall
>            Priority: Minor
>             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