Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Intializer Error in Web application  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

I Am new to this group. Hope get some response for below issue.

I have created one web applications using struts and hibernate Frameworks which is used to insert datas into the database. Getting following error message on performing some action in my page. Error message as

exception

javax.servlet.ServletException: Filter execution threw an exception

root cause

java.lang.ExceptionInInitializerError
src.contact.util.HibernateUtil.<clinit>(HibernateUtil.java:34)

At the same time, I dont any errors in Glass Fish Server.

Please help me out from this issue.

Thanks & Regards,
Sheikh
error-message.JPG
[Thumbnail for error-message.JPG]
Error Screenshot
 
Sheikkadar Mohamedsahib
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need quick response on this issue
 
Bartender
Posts: 9462
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sheikkadar Mohamedsahib wrote:Need quick response on this issue



Welcome to the JavaRanch.
We ask that you be patient. We are all volunteers helping people in our free time.
As for your problem, I have no idea. Your best bet is to catch and log the exception where it occurs. Exceptions can be nested, so it's a good idea to get the exception's cause and print it out (and it's cause...). It would also be wise to make sure you can connect to the database with the same credentials you are using in your Hibernate configuration (i.e. outside the server) and you can connect without Hibernate (i.e. inside the server, directly using JDBC).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!