Any help on this!!!
punit ashra
punitashra at gmail.com
Mon Jul 25 06:00:35 EDT 2016
Hi Dev Team,
Please ignore the previous mail. I am still getting the same error.
"java.util.ServiceConfigurationError: org.opensaml.core.config.Initializer:
Provider org.opensaml.core.xml.config.XMLObjectProviderInitializer not a
subtype"
I even tried to change the code like even registered XMLProviderInitializer.
static {
try {
// Initialize the OpenSAML library
XMLObjectProviderInitializer XMLObjectProvider;
XMLObjectProviderRegistry registry;
synchronized(ConfigurationService.class) {
registry =
ConfigurationService.get(XMLObjectProviderRegistry.class);
XMLObjectProvider =
ConfigurationService.get(XMLObjectProviderInitializer.class);
if (registry == null && XMLObjectProvider == null) {
log.debug("XMLObjectProviderRegistry did not exist in
ConfigurationService, will be created");
registry = new XMLObjectProviderRegistry();
XMLObjectProvider = new XMLObjectProviderInitializer();
ConfigurationService.register(XMLObjectProviderRegistry.class, registry);
ConfigurationService.register(XMLObjectProviderInitializer.class,
XMLObjectProvider);
ConfigurationService.deregister(XMLObjectProviderInitializer.class);
}
}
//XMLObjectProviderRegistry registry =
ConfigurationService.get(XMLObjectProviderRegistry.class);
//if (XMLObjectProviderRegistrySupport.getParserPool() == null) {
InitializationService.initialize();
}
Thanks,
Punit
On Sun, Jul 24, 2016 at 11:13 PM, punit ashra <punitashra at gmail.com> wrote:
> Hi,
>
> I was able to get it work, but i am now getting class cast exception
>
> java.lang.ExceptionInInitializerError
> Caused by: java.lang.ClassCastException:
> org.opensaml.core.xml.schema.impl.XSAnyBuilder cannot be cast to
> org.opensaml.core.xml.XMLObjectBuilder
> at
> org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProviders(XMLConfigurator.java:238)
> at
> org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:203)
> at
> org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:188)
> at
> org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:162)
> at
> org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.init(AbstractXMLObjectProviderInitializer.java:52)
> at
> org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XMLObjectProviderInitializer.java:45)
>
> But i have removed the xmltooling dependency.
> Any help!!!
>
> Thanks,
> Punit
>
> On Fri, Jul 22, 2016 at 3:27 PM, Rod Widdowson <rdw at steadingsoftware.com>
> wrote:
>
>> > I am trying to Initialize the OpenSAML Library.
>>
>> And there are no other code or config changes? Does
>> org.opensaml.core.config.InitializationServiceTest work? I'd suggest you
>> import that 59 line class into your build environment and see what happens?
>>
>> What type is the object that you get back?
>>
>> --
>> To unsubscribe from this list send an email to
>> dev-unsubscribe at shibboleth.net
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20160725/1dc0b1a9/attachment.html>
More information about the dev
mailing list