New parser wants namespace spec.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 2 Mar 2005 02:08:50 +0000 (02:08 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 2 Mar 2005 02:08:50 +0000 (02:08 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1259 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/NameMapper.java

index 92e439f..8f88d4f 100644 (file)
@@ -87,13 +87,13 @@ public class NameMapper {
                try {
                        //Load the default mapping
                        String rawConfig = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
-                                       + "<NameMapping format=\"urn:mace:shibboleth:1.0:nameIdentifier\"" + "          handleTTL=\"1800\"/>";
+                                       + "<NameMapping xmlns=\"urn:mace:shibboleth:namemapper:1.0\" format=\"urn:mace:shibboleth:1.0:nameIdentifier\"" + "             handleTTL=\"1800\"/>";
                        Parser.DOMParser parser = new Parser.DOMParser(false);
                        parser.parse(new InputSource(new StringReader(rawConfig)));                     
                        defaultMapping = new SharedMemoryShibHandle(parser.getDocument().getDocumentElement());
 
                } catch (Exception e) {
-                       log.error("Unable to register default Name Identifier Mapping.");
+                       log.error("Unable to register default Name Identifier Mapping: " + e);
                        initialize();
                }
        }