Announcement Announcement Module
Collapse
No announcement yet.
No namespace handler found for node Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No namespace handler found for node

    Hi,

    I have the standard code which loads an application context

    Code:
    trace("XmlApplicationContext is being loaded");
    var applicationContext : XMLApplicationContext = new XMLApplicationContext();
    applicationContext.addConfigLocation(_contextConfig);
    applicationContext.load();
    Where my application-context.xml looks like this:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <objects xmlns="http://www.springactionscript.org/schema/objects"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springactionscript.org/schema/context"
    	xsi:schemaLocation="http://www.springactionscript.org/schema/objects
                            http://www.springactionscript.org/schema/objects/spring-actionscript-objects-1.0.xsd
                            http://www.springactionscript.org/schema/context 
                            http://www.springactionscript.org/schema/context/spring-actionscript-context-2.0.xsd">
    
    	<context:component-scan/>
    	<context:metadata-config/>
    
    </objects>
    but I get the following error every time

    Code:
    Exception fault: Error: No namespace handler found for node '' with URI 'http://www.springactionscript.org/schema/context'
    	at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parseCustomNode()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:357]
    	at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parseNode()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:324]
    	at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parseObjectDefinitions()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:312]
    	at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parse()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:273]
    	at org.springextensions.actionscript.context.support::XMLApplicationContext/parse()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:396]
    	at org.springextensions.actionscript.context.support::XMLApplicationContext/loadNextConfigLocation()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:436]
    	at org.springextensions.actionscript.context.support::XMLApplicationContext/loader_completeHandler()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:370]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    	at flash.net::URLLoader/onComplete()
    Am I doing something wrong or is this a bug? I'm using SpringActionscript 1.1 with all the as3commons dependencies.

    Thanks,
    Dustin

  • #2
    Figured it out.

    Had to add: applicationContext.addNamespaceHandler(new ContextNamespaceHandler());

    Comment

    Working...
    X