[sip-comm-dev] org.osgi.framework. BundleException: Unresolved constraint in bundle


#1

Hi,

Firstly, I sorry but my english is very bad.

My name is Xurxo Cid. I'm from Galicia (it's a small region in the north of
Spain). Recently, I've known Sip-Communicator project and I think it's
amazing. My congratulations!
For this reason, I'm starting to do my own plugin but I have one problem
when I run SIP-COMMUNICATOR, terminal shows:

ERROR: Error starting reference: file:sc-bundles/DNIe.jar
(org.osgi.framework.
BundleException: Unresolved constraint in bundle [418]: *Unable to resolve
418.0: missing requirement [418.0] package; (package=javax.smartcardio) -
[418.0] package; (package=javax.smartcardio))*

in order to obtain my objective I need to use javax.smartcardio

Do you know what is wrong? Where can I find information about this topic?

Thank you!
Xurxo Cid
xucid86@gmail.com
Student
University of Vigo


#2

Hi,

Hi,

Firstly, I sorry but my english is very bad.

My name is Xurxo Cid. I'm from Galicia (it's a small region in the north of
Spain). Recently, I've known Sip-Communicator project and I think it's
amazing. My congratulations!

Thank you for the kind words.

For this reason, I'm starting to do my own plugin but I have one problem
when I run SIP-COMMUNICATOR, terminal shows:

ERROR: Error starting reference: file:sc-bundles/DNIe.jar
(org.osgi.framework.
BundleException: Unresolved constraint in bundle [418]: Unable to resolve
418.0: missing requirement [418.0] package; (package=javax.smartcardio) -
[418.0] package; (package=javax.smartcardio))

in order to obtain my objective I need to use javax.smartcardio

Do you know what is wrong? Where can I find information about this topic?

It seems to me that you are using a package (javax.smartcardio) which
you haven't imported in your bundle manifest.
You can take a look at simple examples here and importing and
exporting packages:
http://oscar-osgi.sourceforge.net/tutorial/index.html

Cheers
damencho

···

On Fri, Dec 3, 2010 at 1:25 PM, Xurxo Cid Freire <xucid86@gmail.com> wrote:

Thank you!
Xurxo Cid
xucid86@gmail.com
Student
University of Vigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi,

Hi,

Firstly, I sorry but my english is very bad.

My name is Xurxo Cid. I'm from Galicia (it's a small region in the north of
Spain). Recently, I've known Sip-Communicator project and I think it's
amazing. My congratulations!

Thank you for the kind words.

For this reason, I'm starting to do my own plugin but I have one problem
when I run SIP-COMMUNICATOR, terminal shows:

ERROR: Error starting reference: file:sc-bundles/DNIe.jar
(org.osgi.framework.
BundleException: Unresolved constraint in bundle [418]: Unable to resolve
418.0: missing requirement [418.0] package; (package=javax.smartcardio) -
[418.0] package; (package=javax.smartcardio))

in order to obtain my objective I need to use javax.smartcardio

Do you know what is wrong? Where can I find information about this topic?

It seems to me that you are using a package (javax.smartcardio) which
you haven't imported in your bundle manifest.

It must be imported, otherwise there wouldn't be an unresolved constraint.

I would assume that this package is expected to come from the JRE, given its name, but mostly likely the framework isn't configured to export that package in SIP-C. To get this to work, he'll likely have to modify the org.osgi.framework.system.packages.extra property in the framework configuration properties to add this package.

Just a guess.

You can take a look at simple examples here and importing and
exporting packages:
http://oscar-osgi.sourceforge.net/tutorial/index.html

I think we have mostly the same tutorial here and a little more up to date and maintained:

     http://felix.apache.org/site/apache-felix-osgi-tutorial.html

-> richard

···

On 12/3/10 7:43, Damian Minkov wrote:

On Fri, Dec 3, 2010 at 1:25 PM, Xurxo Cid Freire<xucid86@gmail.com> wrote:

Cheers
damencho

Thank you!
Xurxo Cid
xucid86@gmail.com
Student
University of Vigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi Richard,

and thank you for the update and for the link. I also changed our
developers documentation on the wiki with the updated tutorial link.

Thanks
damencho

···

On Fri, Dec 3, 2010 at 4:52 PM, Richard S. Hall <heavy@ungoverned.org> wrote:

On 12/3/10 7:43, Damian Minkov wrote:

Hi,

On Fri, Dec 3, 2010 at 1:25 PM, Xurxo Cid Freire<xucid86@gmail.com> >> wrote:

Hi,

Firstly, I sorry but my english is very bad.

My name is Xurxo Cid. I'm from Galicia (it's a small region in the north
of
Spain). Recently, I've known Sip-Communicator project and I think it's
amazing. My congratulations!

Thank you for the kind words.

For this reason, I'm starting to do my own plugin but I have one problem
when I run SIP-COMMUNICATOR, terminal shows:

ERROR: Error starting reference: file:sc-bundles/DNIe.jar
(org.osgi.framework.
BundleException: Unresolved constraint in bundle [418]: Unable to resolve
418.0: missing requirement [418.0] package; (package=javax.smartcardio) -
[418.0] package; (package=javax.smartcardio))

in order to obtain my objective I need to use javax.smartcardio

Do you know what is wrong? Where can I find information about this topic?

It seems to me that you are using a package (javax.smartcardio) which
you haven't imported in your bundle manifest.

It must be imported, otherwise there wouldn't be an unresolved constraint.

I would assume that this package is expected to come from the JRE, given its
name, but mostly likely the framework isn't configured to export that
package in SIP-C. To get this to work, he'll likely have to modify the
org.osgi.framework.system.packages.extra property in the framework
configuration properties to add this package.

Just a guess.

You can take a look at simple examples here and importing and
exporting packages:
http://oscar-osgi.sourceforge.net/tutorial/index.html

I think we have mostly the same tutorial here and a little more up to date
and maintained:

http://felix.apache.org/site/apache-felix-osgi-tutorial.html

-> richard

Cheers
damencho

Thank you!
Xurxo Cid
xucid86@gmail.com
Student
University of Vigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net