[Mono-list] Error GetApplicationContext
Josua Marpaung
josuapm at yahoo.com
Thu Jul 10 22:18:25 EDT 2008
Dear all,
I'm a newbie for mono.
I use Spring.Net on mono, but while I trying to test GetApplicationContext for my application, there is error look like this :
<![CDATA[System.Configuration.ConfigurationException : Error creating context 'spring.root': XmlSchema error: Referenced group http://www.springframework.net:objectList was not found in the corresponding schema. Related schema item SourceUri: , Line 265, Position 10. ()
----> Spring.Util.FatalReflectionException : Cannot instantiate Type [Spring.Context.Support.XmlApplicationContext] using ctor [Void .ctor(String, Boolean, String[])] : 'Exception has been thrown by the target of an invocation.'
----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> Spring.Objects.Factory.ObjectDefinitionStoreException : Unexpected exception parsing XML document from config [spring/objects]Inner exception message= An exception was thrown by the type initializer for Spring.Objects.Factory.Xml.NamespaceParserRegistry
----> System.TypeInitializationException : An exception was thrown by the type initializer for Spring.Objects.Factory.Xml.NamespaceParserRegistry
----> System.ArgumentException : Could not load schema from resource = assembly [Spring.Core, Version=1.1.1.11001, Culture=neutral, PublicKeyToken=null], resource [Spring.Validation.Config.spring-validation-1.1.xsd]
----> System.Xml.Schema.XmlSchemaException : XmlSchema error: Referenced group http://www.springframework.net:objectList was not found in the corresponding schema. Related schema item SourceUri: , Line 265, Position 10.]]></message>
Here is my App.Config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
</configSections>
<spring>
<context>
<resource uri="config://spring/objects"/>
</context>
<objects xmlns="http://www.springframework.net">
<description>An example that demonstrates simple IoC features.</description>
</objects>
</spring>
</configuration>
Is anyone can help me ...
What's wrong and what I've to do..
FYI I use mono 1.9.1 and Ubuntu 8.04 OS.
Thanks very Much,
Josua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080710/c5547f59/attachment.html
More information about the Mono-list
mailing list