davemssavage / osgi-in-action

Automatically exported from code.google.com/p/osgi-in-action
Apache License 2.0
0 stars 0 forks source link

Error when launching osgiInAction chapter02/paint-modular #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to osgiInAction/osgi-in-action/chapter02/paint-modular
2. execute ant
3. issue the following command: java -jar launcher.jar bundles/

What is the expected output? What do you see instead?
I expect to see the paint app run. Instead i get the following error:

Error starting framework: org.osgi.framework.BundleException: Unresolved 
constraint in bundle org.foo.shape.circle [1]: Unable to resolve 1.0: missing 
requirement [1.0] package; (package=javax.swing)
org.osgi.framework.BundleException: Unresolved constraint in bundle 
org.foo.shape.circle [1]: Unable to resolve 1.0: missing requirement [1.0] 
package; (package=javax.swing)
    at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:909)
    at launcher.Main.main(Main.java:92)

What version of the product are you using? On what operating system?
I downloaded the code at your web site: www.manning.com/OSGIinAction
I am using Fedora 18 with java 1.7.

Please provide any additional information below.

Original issue reported on code.google.com by ted_sh...@yahoo.com on 12 Jul 2014 at 9:42

GoogleCodeExporter commented 9 years ago
For Java7 (and above) you'll need to use latest code from 
http://osgi-in-action.googlecode.com/svn/trunk

Alternative you can apply the patch from 
https://code.google.com/p/osgi-in-action/source/detail?r=37

Original comment by mccu...@gmail.com on 13 Jul 2014 at 6:09