Dear dudes,
I'm having a simple struts application which has a form to get username and password from the user and call the action class, which persist the data in MYSQL database
Actually in my actin class only i'm persisting the database by calling the service class, which reads the hibernate configuration file(hibernate-cfg.xml) and its mapping file
Actually, i'm getting my data and setting my data in my DAO object( i.e. logindata object in my application)
I'm having problem in persisting that DAO object into database.
My service layer is not able to read my DAO hibernate configuration from hibernate-cfg.xml
The exception i'm getting is:
My application structure:
My hibernate-cfg.xml:
Logindata.hbm.xml:
I've configured my workspace to tomcat by setting a configuration file in conf\cataline\localhost folder of Tomcat5.5
This is my action servlet:loginAction .java
My service classes:
loginservice.java
connectionfactory.java:
Here data entered by the user is getting till the action class and data is getting saved in logindata object i.e. my dao object, for which i'm sure as i generate messages which i get in my console ,but when this object is sent into service layer it is throwing mapping exception
Once again the the exception it is throwing is :
Is my application structure is right and what could be done to fix this?
Awaiting for the response!
regards.
I'm having a simple struts application which has a form to get username and password from the user and call the action class, which persist the data in MYSQL database
Actually in my actin class only i'm persisting the database by calling the service class, which reads the hibernate configuration file(hibernate-cfg.xml) and its mapping file
Actually, i'm getting my data and setting my data in my DAO object( i.e. logindata object in my application)
I'm having problem in persisting that DAO object into database.
My service layer is not able to read my DAO hibernate configuration from hibernate-cfg.xml
The exception i'm getting is:
My application structure:
My hibernate-cfg.xml:
Logindata.hbm.xml:
I've configured my workspace to tomcat by setting a configuration file in conf\cataline\localhost folder of Tomcat5.5
This is my action servlet:loginAction .java
My service classes:
loginservice.java
connectionfactory.java:
Here data entered by the user is getting till the action class and data is getting saved in logindata object i.e. my dao object, for which i'm sure as i generate messages which i get in my console ,but when this object is sent into service layer it is throwing mapping exception
Once again the the exception it is throwing is :
Is my application structure is right and what could be done to fix this?
Awaiting for the response!
regards.