The moose likes Other Application Frameworks and the fly likes SessionFactory Problem - SimpleFormContr impl bean not created Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "SessionFactory Problem - SimpleFormContr impl bean not created" Watch "SessionFactory Problem - SimpleFormContr impl bean not created" New topic
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
 
Threads others viewed
Convert type fail in Spring 3.1 and Hibernate 4.1.0
LocalSessionFactoryBean is not a sessionfactory instance
JSF and ResultSets
advice on my data design choice
Struts 1 :- Two Form submission from one jsp using one submit button
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com