Am 2012-07-30 01:26, schrieb Richard S. Hall:
On 7/29/12 2:06 PM, mailinglist wrote:
Dear felix professionals.
New to felix and iPojo. Debian Linux, openjdk.
Tried the 10 minutes tutorial
http://felix.apache.org/site/ipojo-in-10-minutes.html aiming to learn
OSGi while I am developing Java utilities.
This error happened and I was not able to google a solution:
Welcome to Felix
================
ERROR: Error starting
file:../spell.checker.gui/output/spell.checker.gui.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
spell.checker.gui [9]: package; (package=javax.swing))
org.osgi.framework.BundleException: Unresolved constraint in bundle
spell.checker.gui [9]: package; (package=javax.swing)
at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3299)
at
org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
-> [WARNING] IPOJO-Extender : Type of component not available:
comonent
[WARNING] IPOJO-Extender : Type of component not available: comonent
[ERROR] IPOJO-Extender : A parse exception occurs during the parsing
of the bundle 8
org.apache.felix.ipojo.parser.ParseException: An instance does not
have the 'component' attribute
at
org.apache.felix.ipojo.parser.ManifestMetadataParser.parseInstance(ManifestMetadataParser.java:98)
at
org.apache.felix.ipojo.parser.ManifestMetadataParser.getInstances(ManifestMetadataParser.java:74)
at org.apache.felix.ipojo.Extender.parse(Extender.java:267)
at
org.apache.felix.ipojo.Extender.startManagementFor(Extender.java:208)
at
org.apache.felix.ipojo.Extender.access$600(Extender.java:52)
at
org.apache.felix.ipojo.Extender$CreatorThread.run(Extender.java:682)
at java.lang.Thread.run(Thread.java:722)
Could you see my failure?
How are you starting the framework?
Which version of the framework are you running? You should be able to
find out by typing "ps" in the Felix framework shell.
If you are using a really old version of the framework, my guess is
that you are starting it from some directory other than its
installation directory and as a result it cannot find its config
file.
-> richard
Hi, Richard
Thank you for the answer. Here is the requested information:
1. I start the framework by cd into the felix folder that comes with
the tutorial and enter "java -jar bin/felix.jar".
2. When I type "ps" I get
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (2.0.5)
[ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.3)
[ 2] [Active ] [ 1] Apache Felix iPOJO (1.6.0)
[ 3] [Active ] [ 1] Apache Felix iPOJO Arch Command (1.6.0)
[ 4] [Active ] [ 1] Apache Felix Shell Service (1.4.2)
[ 5] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
[ 6] [Active ] [ 1] spell.services (0)
[ 7] [Active ] [ 1] spell.english (0)
[ 8] [Active ] [ 1] spell.checker (0)
[ 9] [Installed ] [ 1] spell.checker.gui (0)
2a. when I enter "version" I get 2.0.5.
Ok, the 10-minutes tutorial comes with 2.0.5 and is pre-configured. The
newest version seems to be 4.0.3 but is not pre-configured for iPojo.
As the example must have worked on some other computer I am looking for
a failure on my site, not a version problem.
Could it be that the iPojo example using javax.swing works with Oracle
jvm but not with openjdk?
Kind Regards
Rolf
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]