ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Christopher <tim.christop...@gmail.com>
Subject Re: Referencing between SqlMaps
Date Mon, 07 Mar 2005 22:18:13 GMT
I've just tried setting useStatementNamespaces to true but I keep on
getting an error like:

  at com.socs.final_year.service.ModuleServiceImp.<init>(MSImp.java:36)
Caused by: java.lang.RuntimeException: Could not initialize DaoConfig.  
Cause: com.ibatis.dao.client.DaoException: Error while configuring DaoManager.
Cause: java.lang.RuntimeException: Error occurred.
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  
Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/end()'.
Cause: com.ibatis.sqlmap.client.SqlMapException: There is no statement
named updateModule in this SqlMap.

I've spent an hour trying to get round it but nothing seems to work,
and the only documentation I can find on it is a couple of lines in
within "Attributes of the settings element".

Tim Christopher

On Mon, 7 Mar 2005 09:17:34 -0600, David Putnam <dputnam@wellsfargo.com> wrote:
> Tim, 
> I have not tried this, but since no one else responded, let me mention
> something you probably already tried. 
> Did you set useStatementNamespaces to true? 
> The other item is one that I am currently struggling with. Even though this
> is not part of iBatis, per. se., it is a consequence of using multiple
> SqlMap definition files. Currently, I define all SQL that retrieves or
> modifies a specific domain object in the same SqlMap file. Even then there
> are still references to different parameterClasses, but there is not as much
> definition required there.  Just trying to keep things DRY.
> David

View raw message