[
https://issues.apache.org/jira/browse/TUSCANY-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602655#action_12602655
]
Rajini Sivaram commented on TUSCANY-2343:
-----------------------------------------
Daniel,
I have been staring at OSGiBundleActivator$BundleClassLoader.getResource hoping
that something will strike me, but I just can't find any problem with it. I
would have been happier if this was a rare timing related issue, but obviously
it isn't.
bundle.getResource() should only return null if 1) the resource is not present
2) the bundle is not resolved or 3) the caller doesn't have permissions. I
can't imagine any of these changing between the two calls in such a consistent
way. It obviously looks like some code during Tuscany startup is having an
impact, but I have no idea what it could be.
If you have Equinox source on your machine, it will be useful to step through
the "bundle.getResource" call in
OSGiBundleActivator$BundleClassLoader.getResource for the bundle
org.apache.tuscany.sca.wstx-asl-3.2.1.jar in the failing case.
Otherwise, maybe compare this setup with your test setup - I am still confused
as to why this didn't fail with your test since the same Tuscany code was
executed with both - in very similar environments perhaps?
- Rajini
> OSGi bundle design leads to class loading issues
> ------------------------------------------------
>
> Key: TUSCANY-2343
> URL: https://issues.apache.org/jira/browse/TUSCANY-2343
> Project: Tuscany
> Issue Type: Bug
> Reporter: Georg Schmidt
> Attachments: Libary Versions.xls, test_bundles.zip
>
>
> Currently the design of the OSGi bundles leads to class loading exceptions.
> There seem to be several reasons for this behavior:
> * reexporting of all libraries without version numbers
> * imports without version numbers
> Please use distinct bundles for 3rd party libraries. That would lead to
> easier reusage of your bundles in a larger OSGi project.
> The current status leads to undefined system behaviour due to the OSGi class
> loading concept.
> Please tell if you see a way, how we could support you by achieving this
> goal. (If a solution is interesting for you) We are willing to contribute
> because its a critical project issue for us.
> The problems occur with the current snapshot release. Sorry, I do not know
> which version to take.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.