darrell.pittman
10-10-2005, 12:28 PM
I'm having a problem with using an <import resource="business-facade-obj.xml"/> tag in an xml file that is referenced in the Web.Config file as follows:
<spring>
<context
type="Spring.Context.Support.WebApplicationContext, Spring.Web">
<resource uri="~/XmlData/SpringObjects/main-objects.xml"/>
</context>
</spring>
The main-objects-xml file contains the <import> tag mentioned above. It seems that when a WebApplicationContext is created it calls AddProtocolMapping("web", typeof(WebResource));
but when it comes to the <import> tag, the AbstractResource object creates a new ConfigurableResourceLoader (which doesn't contain this mapping) and an error is thrown because of the unknown protocol.
Is there something special I have to do to use an <import> tag in a web application xml file?
<spring>
<context
type="Spring.Context.Support.WebApplicationContext, Spring.Web">
<resource uri="~/XmlData/SpringObjects/main-objects.xml"/>
</context>
</spring>
The main-objects-xml file contains the <import> tag mentioned above. It seems that when a WebApplicationContext is created it calls AddProtocolMapping("web", typeof(WebResource));
but when it comes to the <import> tag, the AbstractResource object creates a new ConfigurableResourceLoader (which doesn't contain this mapping) and an error is thrown because of the unknown protocol.
Is there something special I have to do to use an <import> tag in a web application xml file?