mace-opensaml-users - Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3.
Subject: OpenSAML user discussion
List archive
Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3.
Chronological Thread
- From: Chad La Joie <>
- To:
- Subject: Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3.
- Date: Thu, 27 Aug 2009 12:29:24 +0200
- Organization: SWITCH
Yeah, every container does something different.
Joakim, does Glassfish document this mechanism (which honestly at first glance I think I'd prefer over the standard endorse mechanism) somewhere?
Joakim Recht wrote:
Chad La Joie wrote:
It doesn't matter how many times you say you endorsed, you didn't or else you wouldn't be getting the error. If you believe that Glassfish is the thing controlling the endorsement, which is quite likely, then you need to contact them and ask how to properly endorse libraries for that container.
Hi
Glassfish is nice enough to explicitely define which xml parser to use by setting the system property javax.xml.parsers.DocumentBuilderFactory, so any endorsement you make will not have any effect.
To fix this, add a similar property to the domain.xml file:
<jvm-options>-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</jvm-options>
It's worth noting that this behavior also overrides the normal META-INF/services method where you do not have to endorse anything.
Regards,
--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch
- OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., vepanjerigovind, 08/24/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Chad La Joie, 08/24/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Govinda Reddy, 08/24/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Chad La Joie, 08/24/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Joakim Recht, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Govinda Reddy, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Chad La Joie, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Joakim Recht, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Chad La Joie, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Joakim Recht, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Joakim Recht, 08/27/2009
- Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3., Chad La Joie, 08/24/2009
Archive powered by MHonArc 2.6.16.