Discussion:
Missing Guava in TomEE 7.0.4 Plus?
f***@rohde-schwarz.com
2018-06-20 12:46:18 UTC
Permalink
Hey,



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.



Did you guys miss to package this transitive dependency of opensaml (via
java-support)?



Thanks and best

Fabian
Romain Manni-Bucau
2018-06-20 12:49:13 UTC
Permalink
Hi,

yes and no. We intentionnally drop guava and it works with opensaml until
you import shibboleth which requires it. At that moment you have to either
drop opensaml libs from tomee libs or add the missing ones.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Hey,
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.
Did you guys miss to package this transitive dependency of opensaml (via
java-support)?
Thanks and best
Fabian
f***@rohde-schwarz.com
2018-06-20 12:58:24 UTC
Permalink
Is there a way to not "import shibboleth"? I am pretty sure we don’t need it...

-----Original Message-----
From: Romain Manni-Bucau <***@gmail.com>
Sent: Wednesday, June 20, 2018 2:49 PM
To: ***@tomee.apache.org
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

Hi,

yes and no. We intentionnally drop guava and it works with opensaml until you import shibboleth which requires it. At that moment you have to either drop opensaml libs from tomee libs or add the missing ones.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Hey,
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.getAttribut
eValueAsQName(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(XMLObje
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initializati
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of opensaml
(via java-support)?
Thanks and best
Fabian
Romain Manni-Bucau
2018-06-20 13:00:22 UTC
Permalink
Hmm if we provide it OOTB that's a "leak" on our side, if you have it in
the webapp just drop it.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we don’t need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with opensaml until
you import shibboleth which requires it. At that moment you have to either
drop opensaml libs from tomee libs or add the missing ones.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by f***@rohde-schwarz.com
Hey,
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.getAttribut
eValueAsQName(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(XMLObje
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initializati
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of opensaml
(via java-support)?
Thanks and best
Fabian
f***@rohde-schwarz.com
2018-06-20 13:06:32 UTC
Permalink
What do you mean with "leak"? We do not have it in our webapp, we only have guava but it is not picked up by the parent classloader :(

-----Original Message-----
From: Romain Manni-Bucau <***@gmail.com>
Sent: Wednesday, June 20, 2018 3:00 PM
To: ***@tomee.apache.org
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

Hmm if we provide it OOTB that's a "leak" on our side, if you have it in the webapp just drop it.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we don’t
need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with opensaml
until you import shibboleth which requires it. At that moment you have
to either drop opensaml libs from tomee libs or add the missing ones.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
Hey,
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.getAttrib
ut
eValueAsQName(AttributeSupport.java:334)
org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProvide
rs
(XMLConfigurator.java:231)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.ja
va
:203)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.ja
va
:188)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.ja
va
:162)
org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.in
it
(AbstractXMLObjectProviderInitializer.java:52)
org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XMLOb
je
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initializa
ti
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of opensaml
(via java-support)?
Thanks and best
Fabian
Romain Manni-Bucau
2018-06-20 13:11:42 UTC
Permalink
It is not in tomee lib so should be coming from your app or environment :s

by leak i meant we don't intend to deliver this lib out of the box

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
What do you mean with "leak"? We do not have it in our webapp, we only
have guava but it is not picked up by the parent classloader :(
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:00 PM
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hmm if we provide it OOTB that's a "leak" on our side, if you have it in
the webapp just drop it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we don’t
need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with opensaml
until you import shibboleth which requires it. At that moment you have
to either drop opensaml libs from tomee libs or add the missing ones.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
Hey,
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.getAttrib
ut
eValueAsQName(AttributeSupport.java:334)
org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProvide
rs
(XMLConfigurator.java:231)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.ja
va
:203)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.ja
va
:188)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.ja
va
:162)
org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.in
it
(AbstractXMLObjectProviderInitializer.java:52)
org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XMLOb
je
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initializa
ti
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of opensaml
(via java-support)?
Thanks and best
Fabian
f***@rohde-schwarz.com
2018-06-20 13:16:25 UTC
Permalink
I dont understand, java-support-7.1.1.jar (which contains all the shibboleth classes) _IS_ part of the TomEE 7.0.4 Plus package

-----Original Message-----
From: Romain Manni-Bucau <***@gmail.com>
Sent: Wednesday, June 20, 2018 3:12 PM
To: ***@tomee.apache.org
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

It is not in tomee lib so should be coming from your app or environment :s

by leak i meant we don't intend to deliver this lib out of the box

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
What do you mean with "leak"? We do not have it in our webapp, we only
have guava but it is not picked up by the parent classloader :(
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:00 PM
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Missing Guava in
TomEE
7.0.4 Plus?
Hmm if we provide it OOTB that's a "leak" on our side, if you have it
in the webapp just drop it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we don’t
need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with opensaml
until you import shibboleth which requires it. At that moment you
have to either drop opensaml libs from tomee libs or add the missing ones.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perf
or
mance
Post by f***@rohde-schwarz.com
Hey,
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.getAttr
ib
ut
eValueAsQName(AttributeSupport.java:334)
org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProvi
de
rs
(XMLConfigurator.java:231)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:203)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:188)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:162)
org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.
in
it
(AbstractXMLObjectProviderInitializer.java:52)
org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XML
Ob
je
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initiali
za
ti
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of
opensaml (via java-support)?
Thanks and best
Fabian
Romain Manni-Bucau
2018-06-20 13:51:45 UTC
Permalink
you are right, this is a bug. We clearly can't import guava in lib/ (breaks
too much apps) so we need to find a solution for that (potentially not
importing saml).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
I dont understand, java-support-7.1.1.jar (which contains all the
shibboleth classes) _IS_ part of the TomEE 7.0.4 Plus package
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:12 PM
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: Missing
Guava in TomEE 7.0.4 Plus?
It is not in tomee lib so should be coming from your app or environment :s
by leak i meant we don't intend to deliver this lib out of the box
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by f***@rohde-schwarz.com
What do you mean with "leak"? We do not have it in our webapp, we only
have guava but it is not picked up by the parent classloader :(
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:00 PM
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Missing Guava in
TomEE
7.0.4 Plus?
Hmm if we provide it OOTB that's a "leak" on our side, if you have it
in the webapp just drop it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we don’t
need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with opensaml
until you import shibboleth which requires it. At that moment you
have to either drop opensaml libs from tomee libs or add the missing
ones.
Post by f***@rohde-schwarz.com
Post by f***@rohde-schwarz.com
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perf
or
mance
Post by f***@rohde-schwarz.com
Hey,
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.getAttr
ib
ut
eValueAsQName(AttributeSupport.java:334)
org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProvi
de
rs
(XMLConfigurator.java:231)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:203)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:188)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:162)
org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.
in
it
(AbstractXMLObjectProviderInitializer.java:52)
org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XML
Ob
je
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initiali
za
ti
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of
opensaml (via java-support)?
Thanks and best
Fabian
f***@rohde-schwarz.com
2018-06-22 06:28:30 UTC
Permalink
Should I file a bug report?

-----Original Message-----
From: Romain Manni-Bucau <***@gmail.com>
Sent: Wednesday, June 20, 2018 3:52 PM
To: ***@tomee.apache.org
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

you are right, this is a bug. We clearly can't import guava in lib/ (breaks too much apps) so we need to find a solution for that (potentially not importing saml).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
I dont understand, java-support-7.1.1.jar (which contains all the
shibboleth classes) _IS_ part of the TomEE 7.0.4 Plus package
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:12 PM
Missing Guava in TomEE 7.0.4 Plus?
It is not in tomee lib so should be coming from your app or
environment :s
by leak i meant we don't intend to deliver this lib out of the box
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
What do you mean with "leak"? We do not have it in our webapp, we
only have guava but it is not picked up by the parent classloader :(
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:00 PM
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Missing Guava in
TomEE
7.0.4 Plus?
Hmm if we provide it OOTB that's a "leak" on our side, if you have
it in the webapp just drop it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perf
or
mance
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we
don’t need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with
opensaml until you import shibboleth which requires it. At that
moment you have to either drop opensaml libs from tomee libs or
add the missing
ones.
Post by f***@rohde-schwarz.com
Post by f***@rohde-schwarz.com
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-pe
rf
or
mance
Post by f***@rohde-schwarz.com
Hey,
when I try to initialize OpenSAML in TomEE 7.0.4 with
InitializationService.initialize(); I get
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.getAt
tr
ib
ut
eValueAsQName(AttributeSupport.java:334)
org.opensaml.core.xml.config.XMLConfigurator.initializeObjectPro
vi
de
rs
(XMLConfigurator.java:231)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:203)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:188)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:162)
org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.
in
it
(AbstractXMLObjectProviderInitializer.java:52)
org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(X
ML
Ob
je
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initia
li
za
ti
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of
opensaml (via java-support)?
Thanks and best
Fabian
Romain Manni-Bucau
2018-06-22 07:20:38 UTC
Permalink
Feel free to do it and if you want submit a pull request or patch if you
have it.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Should I file a bug report?
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:52 PM
[Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
you are right, this is a bug. We clearly can't import guava in lib/
(breaks too much apps) so we need to find a solution for that (potentially
not importing saml).
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by f***@rohde-schwarz.com
I dont understand, java-support-7.1.1.jar (which contains all the
shibboleth classes) _IS_ part of the TomEE 7.0.4 Plus package
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:12 PM
Missing Guava in TomEE 7.0.4 Plus?
It is not in tomee lib so should be coming from your app or
environment :s
by leak i meant we don't intend to deliver this lib out of the box
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
What do you mean with "leak"? We do not have it in our webapp, we
only have guava but it is not picked up by the parent classloader :(
-----Original Message-----
Sent: Wednesday, June 20, 2018 3:00 PM
Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Missing Guava in
TomEE
7.0.4 Plus?
Hmm if we provide it OOTB that's a "leak" on our side, if you have
it in the webapp just drop it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perf
or
mance
Post by f***@rohde-schwarz.com
Is there a way to not "import shibboleth"? I am pretty sure we
don’t need it...
-----Original Message-----
Sent: Wednesday, June 20, 2018 2:49 PM
Subject: *EXT* [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?
Hi,
yes and no. We intentionnally drop guava and it works with
opensaml until you import shibboleth which requires it. At that
moment you have to either drop opensaml libs from tomee libs or
add the missing
ones.
Post by f***@rohde-schwarz.com
Post by f***@rohde-schwarz.com
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-pe
rf
or
mance
Post by f***@rohde-schwarz.com
Hey,
when I try to initialize OpenSAML in TomEE 7.0.4 with
InitializationService.initialize(); I get
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.getAt
tr
ib
ut
eValueAsQName(AttributeSupport.java:334)
org.opensaml.core.xml.config.XMLConfigurator.initializeObjectPro
vi
de
rs
(XMLConfigurator.java:231)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:203)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:188)
org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.
ja
va
:162)
org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.
in
it
(AbstractXMLObjectProviderInitializer.java:52)
org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(X
ML
Ob
je
ctProviderInitializer.java:45)
org.opensaml.core.config.InitializationService.initialize(Initia
li
za
ti
onService.java:56)
As soon as I add guava-18.0.jar to TomEE/lib it works.
Did you guys miss to package this transitive dependency of
opensaml (via java-support)?
Thanks and best
Fabian
Loading...