ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Brown <dbr...@sexingtechnologies.com>
Subject Re: com.ibatis.dao.client.DaoException: Error while configuring DaoManager
Date Fri, 03 Jul 2009 19:54:30 GMT
Hello Kai, thanks for the reply. At the pleading of a close associate I switched from iBatis
DAO manager to: 

org.springframework.orm.ibatis.support.SqlMapClientDaoSupport

To answer your question my maven repo as seen by my Eclipse project shows this jar in the
build path libraries (before switching to Spring/iBatis):

ibatis2-dao-2.1.7.597.jar

In my new (Spring/iBatis) project the only iBatis reference is: ibatis-sqlmap-2.3.4.726.jar.

As you may suspect I am having different but even more bizarre issues with the Spring/Ibatis
setup. I have a web application that throws an exception as the target goal: I have two tables,
say table A and table B, with the referential integrity constraint defined such that if an
attempt is made to update or insert a record in table B before the appropriate action is taken
on table A a foreign key constraint exception is thrown. Oddly enough I cannot get my testcases
to perform in a like manner. All testcases pass all-the-time irregardless. The SqlMap and
my iBatis DAOs have the usual collection of methods: queryForObject, queryForList, insert
and update. I have a couple of queryForObject and queryForList methods that return the SqlMap
<select count(*) from ...> respectively as an Integer object and a List object. Both
methods return the correct number of record count in the table according to the assertEquals()
method used in which to wrap the method calls.

More simply: the application will correctly insert and update the target table. And, the same
application fails when the database validation rules are violated. Either way this is the
correct behavior that I cannot get from my testcases. I can only get: [INFO] BUILD SUCCESSFUL.

Anybody is welcomed to: comment, rant-and-rave, flame or RTFM as a response.



----- Original Message -----
From: "Kai Grabfelder" <nospam@kaigrabfelder.de>
To: user-java@ibatis.apache.org
Sent: Friday, June 26, 2009 6:46:04 PM GMT -06:00 US/Canada Central
Subject: Re: com.ibatis.dao.client.DaoException: Error while configuring DaoManager

sounds like an older version of iBATIS. Which version are you using? Have you read the manual
that is
available at http://svn.apache.org/repos/asf/ibatis/trunk/java/ibatis-2/ibatis-2-docs/en/

cheers

Kai

--- Original Nachricht ---
Absender: David Brown
Datum: 26.06.2009 23:20
> Hello iBatis folks, I finished reading the Begin book and I have the JPetStore exmaple
imported into Eclipse running OK. I decided to have a hand at iBatis testcase on a live DB
but this is all that I can get:
> 
> 
> 
> com.ibatis.dao.client.DaoException: Error while configuring DaoManager.  Cause: com.ibatis.common.exception.NestedRuntimeException:
Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
org.xml.sax.SAXParseException: Attribute "defaultStatementTimeout" must be declared for element
type "settings".
> 
> 
> 
> Regards, David.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message