Hi,
When I try a pax-exam 4.3 test using Karaf 2.4, I get this OSGI Wiring error
2014-12-11 17:43:04,313 | INFO | FelixStartLevel | core
| 34 - org.apache.aries.jmx.core - 1.1.2 | Unregistering MBean
with ObjectName
[osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=ef339918-f755-402a-955d-93182f61a4d5]
for service with service.id [10]
Exception in thread "Thread-41" java.lang.NoClassDefFoundError:
org/springframework/osgi/context/support/AbstractDelegatedExecutionApplicationContext$2
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:210)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.close(AbstractDelegatedExecutionApplicationContext.java:93)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236)
at
org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:980)
Caused by: java.lang.ClassNotFoundException: Unable to load class
'org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2'
because the bundle wiring for org.springframework.osgi.core is no longer
valid.
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1521)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 4 more
Is this error related to the fact that I try to use Spring & Spring-DM
features part of the Karaf assembly project ?
features(
maven().groupId("org.apache.karaf.assemblies.features").artifactId("standard").type("xml").classifier("features").versionAsInProject(),
"spring", "spring-dm"
),
Regards,
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io