problem in login page

I my project I am using Oracle database,using Hibernate I remotely connect to the database.
When I deploy the war and run the project I am able to login into my application,but suppose next day I try to login in that application it gives "Invalid username or password" it means not able to login in application,
and than I deploy war and again login it login successfully.login page is normal jsp page.

Till Now, what have you done to debug this? i.e. Have you made sure that that parameters are passed correctly and the connection to database is not lost, also HQL Queries are executed correctly and the results it returns is correct .

Prasad Krishnegowda wrote:Till Now, what have you done to debug this? i.e. Have you made sure that that parameters are passed correctly and the connection to database is not lost, also HQL Queries are executed correctly and the results it returns is correct .

What exactly is the root cause for the error?

But it is working when for whole day it create problems for the next day when without deploy the war I try to login into the page.

When you shutdown your machine, all your java processes and database connection to remote machine get killed. When you start your PC in the morning, you will have to make sure that
web server is up and application is deployed as war.

Oli Wurster
Greenhorn

Joined: Mar 09, 2012
Posts: 6

posted Mar 26, 2012 08:01:25

0

Please send us a code snippet of your hibernate connection (hibernate.cfg.xml). And a code snippet of the authentication function would be useful too. Have you tried to connect to oracle with an oracle client (sqlplus / sqldeveloper)?

So, basically whenever you restart your server, you get this problem. I repeat, What have you done to debug this? Your log files are not giving you any information as DB connection failed or any other error?

Oli Wurster wrote:Please send us a code snippet of your hibernate connection (hibernate.cfg.xml). And a code snippet of the authentication function would be useful too. Have you tried to connect to oracle with an oracle client (sqlplus / sqldeveloper)?