0

I am trying to mix OSGi and JEE. I want to create a component in my Activator.java but when I console this project, I see following error:

could not resolve the bundles: [agenda.console-0.0.0Unresolved constraint in bundle agenda.console [8]: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package;(osgi.wiring.package=com.sun.xml.internal.fastinfoset.sax)]

Activator.java

Activator

Bundels:

Bundels

MANIFEST of the JAR file MANIFEST

Thank you for your helps!

xiao
  • 542
  • 1
  • 9
  • 16

2 Answers2

2

You are trying to use a class named com.sun.xml.internal.fastinfoset.sax.Properties. What is that class and why are you using it? The name suggests it is internal and should not be used.

Probably you intended to use java.util.Properties. When you type a simple class name and then hit Ctrl-Space to complete the import for you, it's very important to pay attention to which class you are actually importing.

Neil Bartlett
  • 23,743
  • 4
  • 44
  • 77
0

Put:

-runsystempackages: com.sun.xml

In your bndrun file.

Jeroen
  • 413
  • 1
  • 4
  • 16