Skip to Content.
Sympa Menu

mace-opensaml-users - Re: RE: Problem in creating Assertion Object

Subject: OpenSAML user discussion

List archive

Re: RE: Problem in creating Assertion Object


Chronological Thread 
  • From:
  • To:
  • Subject: Re: RE: Problem in creating Assertion Object
  • Date: Sat, 26 Aug 2006 15:05:49 -0400 (EDT)

the build for the svn code is breaking. so i am using tp1 . i read on this
list that i need to load the config file before calling builderFactory. but
when i did i am getting the following error

I am tyring to load the configuration file


File conf = new
File("/Users/harsha/Code/opensaml-javaconf/saml2-assertion-config.xml");
Configuration.load(conf);
XMLObjectBuilderFactory builderFactory =
Configuration.getBuilderFactory();

// Get the assertion builder based on the assertion element name
AssertionBuilder builder = (AssertionBuilder)
builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME);

// Create the assertion
Assertion assertion = builder.buildObject();

log4j:WARN No appenders could be found for logger
(org.opensaml.xml.Configuration).
log4j:WARN Please initialize the log4j system properly.
ERROR: 'UndeclaredPrefix: Cannot resolve 'saml2:Action' as a QName: the
prefix 'saml2' is not declared.'
org.opensaml.xml.ConfigurationException: Unable to parse configuration
file(s) in /Users/harsha/Code/conf/saml2-assertion-config.xml
at org.opensaml.xml.Configuration.load(Configuration.java:129)

please help me with this

thanks
harsha



Archive powered by MHonArc 2.6.16.

Top of Page