Skip to Content.
Sympa Menu

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

Subject: OpenSAML user discussion

List archive

Re: Problem in creating Assertion Object


Chronological Thread 
  • From: Chad la Joie <>
  • To:
  • Subject: Re: Problem in creating Assertion Object
  • Date: Sat, 26 Aug 2006 18:08:13 -0400
  • Organization: UIS - middleware

What was the error you received? I've been doing builds in preparation for the TP2 release and haven't gotten any errors.


wrote:
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

--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware 202.687.0124



Archive powered by MHonArc 2.6.16.

Top of Page