Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 9521
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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!