cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] [Created] (CXF-5030) Exception in opensaml initialization in OSGi: NoClassDefFoundError: org/apache/xml/security/Init
Date Wed, 22 May 2013 14:19:20 GMT
Christian Schneider created CXF-5030:

             Summary: Exception in opensaml initialization in OSGi: NoClassDefFoundError:
                 Key: CXF-5030
             Project: CXF
          Issue Type: Bug
          Components: WS-* Components
    Affects Versions: 2.7.5
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 2.7.6, 3.0.0

Opensaml depends on xmlsecurity. Unfortunately the dependency is optional but needed.

In the wss4j feature opensaml is loaded at start level 30,
xmlsec at start level 25.

So one part of the fix is to make opensaml depend on xmlsec without the optional flag.

The other part is to have them both at the same start level.
Additionally xmlsec should appear before opensaml in the feature so older karaf versions also


Caused by: java.lang.NoClassDefFoundError: org/apache/xml/security/Init
	at org.opensaml.DefaultBootstrap.initializeXMLSecurity(
	at org.talend.esb.authorization.xacml.rt.pep.CXFXACMLAuthorizingInterceptor.<init>(
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_21]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance([:1.7.0_21]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance([:1.7.0_21]
	at java.lang.reflect.Constructor.newInstance([:1.7.0_21]
	at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(
	at org.apache.aries.blueprint.container.BeanRecipe.newInstance(
	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(
	... 30 more
Caused by: java.lang.ClassNotFoundException:
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal([osgi-3.8.0.v20120529-1548.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass([osgi-3.8.0.v20120529-1548.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass([osgi-3.8.0.v20120529-1548.jar:]
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass([osgi-3.8.0.v20120529-1548.jar:]
	at java.lang.ClassLoader.loadClass([:1.7.0_21]
	... 42 more

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message