PDA

View Full Version : <object> not found


anicething
12-10-2006, 06:53 AM
hi,all
I used spring.net in my smart client programm, spring.net was deployed on web services,but my appliaction often throw exception like <object> dont defined. what's the wrong with it? I think the problem was from xml schema validation.

.ben
12-10-2006, 01:37 PM
have you added a spring section to the configsections of the config file?

cfr:

<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
</sectionGroup>
</configSections>

anicething
12-19-2006, 04:57 AM
I dont use a config file,but seprated a config xml file like the example

Erich Eichinger
12-19-2006, 07:03 AM
Hi,

could you please be a little bit more specific? Maybe you can post the exception's stacktrace and your config?

cheers,
Erich

anicething
12-20-2006, 05:10 AM
hi,thank you, you are so kind to me, follow is the example xml file. I had read the source code, spring-objects.xsd is embbed file.but when the web services become busy, always throw exception:dont define element <object>

<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd">
<description>THE SERVIES INTERFACE OF BLL</description>
<!-- SYSTEM MANAGE BLL-->
<object name="ILogBLL" type="HustCAD.IntePLM.TyLogBLL.CLogBLL,IntePLM.BLL.TyLog BLL" singleton="false"></object>
<object name="IEnumBLL" type="HustCAD.IntePLM.TyEnumBLL.CEnum,IntePLM.BLL.TyEnum BLL" singleton="false"></object>
<object name="IPsetBLL" type="HustCAD.IntePLM.TyPsetModule.CPset,IntePLM.BLL.TyP setModule" singleton="false"></object>
<object name="IFileVaultBLL" type="HustCAD.IntePLM.TyFileVaultBLL.CTyFileVaultBll,Int ePLM.BLL.TyFileVaultBLL" singleton="false"></object>
<object name="ISysParamBLL" type="HustCAD.IntePLM.BLL.COtherParamBLL,IntePLM.BLL.TyP aramsManage" singleton="false"></object>
<object name="IInternetEmailBLL" type="HustCAD.IntePLM.TyInternetEmail.CInternetEmailBLL, IntePLM.UNI.TySmtp" singleton="false"></object>
</objects>

Erich Eichinger
12-20-2006, 07:28 AM
Hi,

if this is an exact copy of your config, you should remove the blanks from the typenames. If this doesn't work plz post a full stacktrace including the exact error-message of the exception that is thrown.

- Erich