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/02/28 15:57:37 UTC
[jira] Created: (FELIX-2864) Failure to start framework on JDK 7
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
[jira] Closed: (FELIX-2864) [Framework] Add package profile for
JDK7 to default properties
Posted by "Jesse Glick (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (FELIX-2864) [Framework] Add package profile for
JDK7 to default properties
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall updated FELIX-2864:
-----------------------------------
Issue Type: Improvement (was: Bug)
Summary: [Framework] Add package profile for JDK7 to default properties (was: Failure to start org.osgi.core pseudobundle on JDK 7)
> [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
> 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
[jira] Commented: (FELIX-2864) Failure to start framework on JDK 7
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (FELIX-2864) Failure to start framework on JDK 7
Posted by "Jesse Glick (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (FELIX-2864) Failure to start framework on JDK 7
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall updated FELIX-2864:
-----------------------------------
Fix Version/s: framework-3.2.0
> 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
[jira] Resolved: (FELIX-2864) [Framework] Add package profile for
JDK7 to default properties
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall resolved FELIX-2864.
------------------------------------
Resolution: Fixed
Assignee: Richard S. Hall
I've added a package profile to the default framework configuration properties, so hopefully this will resolve your issue. Please close if satisfied. Thanks.
> [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
[jira] Updated: (FELIX-2864) Failure to start org.osgi.core
pseudobundle on JDK 7
Posted by "Jesse Glick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Glick updated FELIX-2864:
-------------------------------
Priority: Minor (was: Critical)
Summary: Failure to start org.osgi.core pseudobundle on JDK 7 (was: Failure to start framework on JDK 7)
Using scope=provided seems to solve the issue. Not sure under what other conditions someone might run into this, so leaving open but decreasing priority.
> Failure to start org.osgi.core pseudobundle 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: 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