On 4/16/10 6:54, Norbert Somlai wrote:
Hello,
We have a fragment bundle that loads without warnings and gets into Resolved
state. However, it does not get attached to any host and the bundle using it
gets resolved and started but fails with a ClassNotFoundException. Could you
tell us what could be wrong?
-> ps
...
[ 2] [Resolved ] [ 1] Messages fragment (1.0.0.messages)
[ 3] [Resolved ] [ 1] SampleClient (1.0.0)
-> inspect fragment capability 2
com.acme.platform.messages.fragment [2] is attached to:
----------------------------------------------------------
Nothing
MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Messages fragment
Bundle-SymbolicName: com.acme.platform.messages.fragment
Bundle-Version: 1.0.0.messages
Bundle-Vendor: EPAM
Fragment-Host: system.bundle;extension:=framework
The above is a system bundle framework extension, which automatically
gets attached to the system bundle when it is installed; this is why you
see if get resolved immediately. However, the fact that it is attached
to nothing is sort of a missed special case since system bundle
extensions are handled differently than normal fragments. This message
should be improved in the framework.
If you are trying to create a fragment for SampleClient, you should have
something like this in the fragment metadata:
Fragment-Host: <symbolic-name-of-sample-client>
This will cause the fragment to get attached to SampleClient, rather
than the system bundle.
On the other hand, if you really want this to be exported from the
system bundle (which is the purpose of system bundle framework
extensions), then it appears as if your SampleClient bundle is not
properly importing the package.
-> richard
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ClassPath: fragment/com.acme.e3.platform.samples.messaging.s
ampleservice.messages.v1-1.1.0.jar
Export-Package: com.acme.e3.platform.samples.messaging.sampleservic
e.messages.v1
Error:
-> start 3
Exception: java.lang.NoClassDefFoundError:
com/expedia/e3/platform/samples/messaging/sampleservice/messages/v1/ConcatenateStringsRequestType
Thanks, Norbert
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org