Looks like the class is duplicated in two bundles. Which bundle contains
the service interface class? Here are a couple of ways of doing things:
1. Package the interface in A or in some other bundle C. If you chose
bundle C, then let A import that package.
2. Package the service impl in B. Let B import the interface.
OR
1. Package the service interface and implementation as part of B. Export
only the interface package from B.
2. Add a DynamicImport-Package for the service interface package in A's
header. This would work as long as A does not refer to the interface
before B is installed.
Thanks,
Sahoo
Geir Magnusson Jr. wrote:
The odds are I'm doing things incorrectly, but I'm having so much fun,
I can't really help myself. Forgive any mistakes in jargon - I'm
fairly new to this.
I have a bundle A and a bundle B.
After A is installed and started, at some future time, it may itself
install and start B which on activation, registers a service S, the
package in which S is implemented is listed as an Export-Package in
B's manifest.
It seems to be that Felix wants A to list that same package as an
Import-Package in A's manifest or else I seem to get a
ClassCastException. However, given the lack of B at the time of A's
installation and starting, the Import-Package isn't getting satisfied.
How do I get myself out of this?
TIA
geir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]