Fixed it by installing the org.eclipse.equinox.common-3.6.0.v20100503.jar in Equinox.
This can be done manually by executing the following command in the equinox console :
Code:
install file:///Users/ddewaele/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.common/3.6.0.v20100503/org.eclipse.equinox.common-3.6.0.v20100503.jar
or by adding the following line in your Equinox config.ini
Code:
/Users/ddewaele/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.common/3.6.0.v20100503/org.eclipse.equinox.common-3.6.0.v20100503.jar@start
If you check your bundles using the ss command, you should see it in the list
Code:
46 ACTIVE org.eclipse.equinox.common_3.6.0.v20100503
This org.eclipse.equinox.common bundle exports the following package :
Code:
org.eclipse.core.internal.runtime;common=split
This is the package that needs to be imported by the bundle that does the component scanning.
So in the WAB we need to ensure that we import this package using the Import-Package in the MANIFEST.MF
Code:
org.eclipse.core.runtime;version="[3.1.0,4.0.0)";common=split
After that, when deploying the Spring WAB you should see this if you have debug logging enabled
Code:
DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Found Equinox FileLocator for OSGi bundle URL resolution
If all goes well, it should now be able to translate the bundle resource
Code:
bundleresource://48.fwk426901684:1/com/ecs/sample/spring/
into a URL resource
Code:
URL [jar:file:/Users/ddewaele/equinox-test-harness/target/configuration/org.eclipse.osgi/bundles/48/1/bundlefile!/WEB-INF/classes/com/ecs/sample/spring/]