[sip-comm-dev] Adding a new library


#1

Hi everyone,

I added two libraries from extern to the SC. I mentioned the imports in my plugin's manifest, too. After running the SC, the following error occurs:

ERROR: Error starting reference:file:sc-bundles/awareness.jar (org.osgi.framework.BundleException: Unresolved package in bundle 52: package; (&(package=org.avis.client)(version>=0.0.0)))

I think it is because my libraries are only marked as extern. Does anybody know how the problem could be solved?

Thx a lot

Best Regards

···

--
Philipp Zimmer

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


#2

Philipp Zimmer schrieb:

Hi everyone,

I added two libraries from extern to the SC. I mentioned the imports in my plugin's manifest, too. After running the SC, the following error occurs:

ERROR: Error starting reference:file:sc-bundles/awareness.jar (org.osgi.framework.BundleException: Unresolved package in bundle 52: package; (&(package=org.avis.client)(version>=0.0.0)))

Does anybody know how the problem could be solved?

Thx a lot

Best Regards

Nobody? :frowning:

···

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


#3

Hey Philipp,

When you say that you added the libs to SC what do you mean exactly? Did
you add them as bundles or did you drop them in the
lib/installer-exclude directory?

The thing is that you have to let felix know these libs exist before
your plugin can use them. There are three ways to do this:

1. You make the libs run as bundles in which case you have to declare
the packages they export in their manifest files and then modify
felix.client.run.properties to run them.

2. Add your libs to the classpath and add the packages you are going to
use to the org.osgi.framework.system.packages property in
felix.client.run.properties.

3. Include their content inside your plugin jar. One way to do this is
using the zipfileset tag inside the jar task that creates your plugin
bundle.

Hope this helps
Emil

Philipp Zimmer написа:

···

Philipp Zimmer schrieb:

Hi everyone,

I added two libraries from extern to the SC. I mentioned the imports
in my plugin's manifest, too. After running the SC, the following
error occurs:

ERROR: Error starting reference:file:sc-bundles/awareness.jar
(org.osgi.framework.BundleException: Unresolved package in bundle 52:
package; (&(package=org.avis.client)(version>=0.0.0)))

Does anybody know how the problem could be solved?

Thx a lot

Best Regards

Nobody? :frowning:

---------------------------------------------------------------------
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