wrong exported packages in adb and kernel modules
-------------------------------------------------
Key: AXIS2-4287
URL: https://issues.apache.org/jira/browse/AXIS2-4287
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb, kernel
Affects Versions: M2
Environment: OSGi, Windows
Reporter: Santiago Aranda Rojas
I think there is a problem with axis2
osgi modules.This is my example
1) axis2-kernel.1.4.1.jar exports "org.apache.axis2.util" version
=0.0.0
2) axis2-adb-1.41.jar exports "org.apache.axis2.util" version =0.0.0
( a package with the same name)
3) tuscany-binding-ws-axis2-2.0-M1.jar imports
"org.apache.axis2.util" version=0.0.0
Both packages are called with the same name but they have differents
classes. Only the first one contains "TargetResolver" class.
Tuscany-binding-ws-axis2 bundle imports the wrong package because all
exported packages have the same version and OSGi framework resolve then by
bundle id.
I have fixed this changing version of exported package from axis2-kernel. If
it exports a bigger version, tuscany-binding can recover the right package.
OSGi only will register the first package from the different installed bundles.
So it is very important, that embeded packages to be exported in several
bundles will include the same set of classes or if they are different they
must havedifferent versions
Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.