[ 
https://issues.apache.org/jira/browse/CXF-5030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schneider resolved CXF-5030.
--------------------------------------

    Resolution: Fixed
    
> Exception in opensaml initialization in OSGi: NoClassDefFoundError: 
> org/apache/xml/security/Init
> ------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5030
>                 URL: https://issues.apache.org/jira/browse/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 work.
> --
> Caused by: java.lang.NoClassDefFoundError: org/apache/xml/security/Init
>       at 
> org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:157)
>       at 
> org.apache.ws.security.saml.ext.OpenSAMLBootstrap.bootstrap(OpenSAMLBootstrap.java:78)
>       at 
> org.apache.ws.security.saml.ext.OpenSAMLUtil.initSamlEngine(OpenSAMLUtil.java:61)
>       at 
> org.apache.cxf.rt.security.xacml.AbstractXACMLAuthorizingInterceptor.<init>(AbstractXACMLAuthorizingInterceptor.java:60)
>       at 
> org.talend.esb.authorization.xacml.rt.pep.CXFXACMLAuthorizingInterceptor.<init>(CXFXACMLAuthorizingInterceptor.java:58)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)[:1.7.0_21]
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_21]
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_21]
>       at 
> java.lang.reflect.Constructor.newInstance(Constructor.java:525)[:1.7.0_21]
>       at 
> org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:329)
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:962)
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:331)
>       ... 30 more
> Caused by: java.lang.ClassNotFoundException: org.apache.xml.security.Init
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)[osgi-3.8.0.v20120529-1548.jar:]
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)[osgi-3.8.0.v20120529-1548.jar:]
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)[osgi-3.8.0.v20120529-1548.jar:]
>       at 
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.8.0.v20120529-1548.jar:]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[: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: http://www.atlassian.com/software/jira

Reply via email to