Hi Rob,

justme2 wrote:
Hi to all, I;m facing a problem that I'm unable to solve, following the
tutorial regarding persistence and Hibernate, an error raised up running
"mvn -e test -Dtest=AnonIdDaoTest -Dsurefire.useFile=false".
This is the output of the command (part of):
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.rossw.aftrial.dao.AnonIdDaoTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.172 sec
<<< FA
ILURE!
testAddAndRemoveAnonId(org.rossw.aftrial.dao.AnonIdDaoTest)  Time elapsed:
1.078
 sec  <<< ERROR!
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'anonIdDao' defined in URL
[file:/C:/NBprojects/AppfuseTrial/core/target/
classes/applicationContext.xml]: Instantiation of bean failed; nested
exception
is org.springframework.beans.BeanInstantiationException: Could not
instantiate b
ean class [org.appfuse.dao.hibernate.GenericDaoHibernate]: No default
constructo
r found;
<..>
I've searched for the GenericDaoHibernate source but I haven't found it (is
there a javadoc?).
The GenericDaoHibernate class is part of the AppFuse code. Googling for GenericDaoHibernate turns up the following link to its JavaDoc as the first hit:

http://static.appfuse.org/appfuse-hibernate/apidocs/org/appfuse/dao/hibernate/GenericDaoHibernate.html

You can find the source via the "Project Information" menu item on the AppFuse home page (www.appfuse.org) - look for "Source Repository". I usually use the "FishEye" browser link from that page, which takes you here: http://fisheye4.cenqua.com/browse/appfuse

All that said, I'm not sure that would help you as much as the error message does - it says "no default constructor found" so I'd guess that you don't have a default constructor in your AnonIdDao class. You should have the following in your AnonIdDao class:

public AnonIdDao() {
   super (AnonIdDao.class);
}

HTH,
Rob Hills

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to