Can you post the complete stacktrace?
________________________________
From: Paul Ski [mailto:paulski82@hotmail.com]
Sent: Monday, September 08, 2008 9:14 AM
To: user-java@ibatis.apache.org
Subject: RE: java.lang.InstantiationException using Ibatis DAO
My DAO and DAOImlp classes were generated by Ibator. The only generated
constructor for AliasesDAOImpl is below:
---snip---
/**
* This method was generated by Abator for iBATIS. This method
corresponds to the database table aliases
* @abatorgenerated Fri Sep 05 23:35:30 EST 2008
*/
public AliasesDAOImpl ( SqlMapClient sqlMapClient )
{
super ();
this.sqlMapClient = sqlMapClient;
}
---snip---
Is there a config option for abatorConfig.xml that tells Ibator to build
classes including a constructor that takes a DaoManager object?
Thanks,
Paul
________________________________
Subject: RE: java.lang.InstantiationException using Ibatis DAO
Date: Mon, 8 Sep 2008 08:56:37 +0200
From: n.beekman@wis.nl
To: user-java@ibatis.apache.org
Your AliasesDaoImpl should have a public constructor that takes a
DaoManager as its single argument. Can you check that this is the case?
Hth,
Niels
|