[ 
https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000489#comment-13000489
 ] 

Jesse Glick commented on FELIX-2864:
------------------------------------

As far as I know JDK 7 is feature complete so the package list in the preview 
build should be the same as in FCS unless something weird happens.

org.apache.felix:org.osgi.core:1.4.0 is a Maven dependency. The current run 
goal just asks to load dependencies in Felix. Perhaps this one needs to be 
explicitly excluded, or it needs to be specified with scope=provided. I will 
look into whether the archetype can be improved to work around the package list 
problem; never came up before since the OSGi bundle loads fine in JDK 6.

> 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

        

Reply via email to