Skip to Content.
Sympa Menu

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: Joakim Recht <>
  • To: "" <>
  • Subject: Re: [OpenSAML] OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3.
  • Date: Thu, 27 Aug 2009 11:51:37 +0200

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,
--
Joakim Recht

Trifork A/S, Margrethepladsen 4, 8000 Aarhus C, Denmark
Phone: +45 8732 8787 / Mobile: +45 2021 6257
http://www.trifork.com - E-mail:




Archive powered by MHonArc 2.6.16.

Top of Page