| Author |
SessionFactory Problem - SimpleFormContr impl bean not created
|
Girish Varde
Greenhorn
Joined: Jul 09, 2004
Posts: 23
|
|
Dear all, I developed a demo app based on model PetClinic delivered with the kit. My demo uses same Clinic interface and HibernateClinic dao impl, and works fine. I use SimpleForm controller and AbstrctClinicForm too, as they are. The demo application works perfectly fine, thanks to SF. I inserted sop for property setting confirmation inside setClinic() of AbstractClinicForm, and a nonnull object is set during deployment. Now, my live project, has totally different package structure etc, but the principles used are same as demo model. That is, I have WareHouse interface instead of Clinic, HibernateWarehouse insted of HibernateClinic, AbstractWarehouseForm instead of AbstractClinicForm, LoginForm extending AbstractWarehouseForm instead of FindOwnersForm ext AbstractClinicForm. Also my appcontexhibernate has simillar bean declaration for Warehouse and its target i.e HibernateWarehouse which ext HibernateDaoSupport and impl Warehouse. Appcontext beans and sessionfactory property settings too are same. Inspite of all same environment, my AbstractWarehouse's setWareHouse is not called, and so the bean is not properly instantiated. In log, it says bean instantiated, but when i get the HibernateWarehouse object in my LoginForm(ext AbstractWarehouseForm ext SFContr) class by getWarehouse(), the object is null, becuse the setter of AbstractWarehouseForm is not called at the depl time. Can anybody tell me,what additional things I need to take care. Is it a jar compatibility problem? Worst thing is it doesnot give any clue but gives nullpointer in LoginForm. I will be very greatful to u, if u can find some time to guide me in this situation. Girish Varde
|
 |
 |
|
|
subject: SessionFactory Problem - SimpleFormContr impl bean not created
|
|
|