ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morten Schmidt" <...@knowledgelab.sdu.dk>
Subject Svar: Re: 1.2 and 1.6 error on SqlMap.config
Date Thu, 02 Jun 2005 12:34:22 GMT
Sorry... Didn't think there. Here it is: 
<?xml version=1.0 encoding=UTF-8 ?> 
<properties resource=./Resources/Properties.xml/> 
<setting useStatementNamespaces=true/> 
<setting cacheModelsEnabled=true/> 
<provider name=${provider}/> 
<dataSource name=budgetmodel.datamapper default=true 
<sqlMap resource=./Resources/AccessProfile.xml/> 
<sqlMap resource=./Resources/BudgetPeriod.xml/> 
<sqlMap resource=./Resources/BudgetValue.xml/> 
<sqlMap resource=./Resources/NumberStyle.xml/> 
<sqlMap resource=./Resources/Sequence.xml/> 
<sqlMap resource=./Resources/StyleSheet.xml/> 
<sqlMap resource=./Resources/UserData.xml/> 
<sqlMap resource=./Resources/Page.xml/> 
I checked all resource files and the property file, but they do not
contain default either... 

>>>rongrabowski@yahoo.com 06/02/05 1:54 pm >>>
It would be helpful if we could see your sqlMap.config file. It should
not contain any attributes named default. The error message says that
you have the attribute default somewhere in the file.

--- Morten Schmidt <sch@knowledgelab.sdu.dk> wrote:

>OK, I just upgraded to the new ALPHA's
>I get the following error:
> Invalid SqlMap.config document. cause :The 'default' attribute is
>declared. An error occurred at , (1, 386).
>Description: An unhandled exception occurred during the execution of
>current web request. Please review the stack trace for more
>about the error and where it originated in the code.
>Exception Details:
>Invalid SqlMap.config document. cause :The 'default' attribute is not
>declared. An error occurred at , (1, 386).
>and the Stack trace:
>[ConfigurationException: Invalid SqlMap.config document. cause :The
>'default' attribute is not declared. An error occurred at , (1, 386).
>section, String schemaFileName) +446
>document, DataSource dataSource, Boolean useConfigFileWatcher,
>isCallFromDao) +99
>- The error occurred while Validate SqlMap config.
>- The error occurred in The 'default' attribute is not declared. An
>error occurred at , (1, 386).
>document, DataSource dataSource, Boolean useConfigFileWatcher,
>isCallFromDao) +164
>resource, ConfigureHandler configureDelegate) +196
>   IBatisNet.DataMapper.Mapper.InitMapper() +65
>   IBatisNet.DataMapper.Mapper.Instance() +64
>   BudgetModel.Model.Helper.UserDataHelper.UserLogin(String username,
>String uPassword) +164
>   BudgetModel.login.ok_Click(Object sender, EventArgs e) in
>C:\Documents and
>   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
>eventArgument) +57
>   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
>sourceControl, String eventArgument) +18
>   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
>   System.Web.UI.Page.ProcessRequestMain() +1292
>What wen't wrong? It worked with my own compile... but there I had to
>leave out some code...

View raw message