You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Gurkan Erdogdu (JIRA)" <ji...@apache.org> on 2018/06/25 06:30:00 UTC

[jira] [Commented] (TOMEE-2198) OpenSAML packaging incomplete/broken

    [ https://issues.apache.org/jira/browse/TOMEE-2198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521896#comment-16521896 ] 

Gurkan Erdogdu commented on TOMEE-2198:
---------------------------------------

Is this a major bug? Or we need to change its type and priority?

> OpenSAML packaging incomplete/broken
> ------------------------------------
>
>                 Key: TOMEE-2198
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2198
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.4
>            Reporter: Fabian Richter
>            Priority: Major
>
> When I try to initialize OpenSAML in TomEE 7.0.4 with InitializationService.initialize(); I get
>  
> java.lang.ClassNotFoundException: com.google.common.base.Function
>             java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>             java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>             java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>             net.shibboleth.utilities.java.support.xml.AttributeSupport.getAttributeValueAsQName(AttributeSupport.java:334)
>             org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProviders(XMLConfigurator.java:231)
>             org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:203)
>             org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:188)
>             org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:162)
>       org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.init(AbstractXMLObjectProviderInitializer.java:52)
>             org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XMLObjectProviderInitializer.java:45)
>             org.opensaml.core.config.InitializationService.initialize(InitializationService.java:56)
>  
> As soon as I add guava-18.0.jar to TomEE/lib it works.
> After some discussion on the ML it turned out that "java-support.jar" which packages the shibboleth SSO implementation is the culprit and should have been excluded from the TomEE plus distribution alongside guava which was intentionally left out due to it "breaking too many apps" (quote Romain)
> Solution proposal: Why not exclude OpenSAML completely from TomEE as it is currently not working without manually adding or removing jars from /lib/ folder?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)