Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6908857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:36:56+00:00 2026-05-27T08:36:56+00:00

I hav a webserver and when I try to use the hibernate util I

  • 0

I hav a webserver and when I try to use the hibernate util I get an excpetion (returned to the client):

SoapFault - faultcode: 'soapenv:Server' faultstring: 'Could not initialize class com.test.data.HibernateUtil' faultactor: 'null' detail: org.kxml2.kdom.Node@4054db90

It worked fine on my local pc. How can I know what is the reason for it?

I have the following code:
public class HibernateUtil {
    private static final SessionFactory sessionFactory;

    static {
        try {
            // Create the SessionFactory from hibernate.cfg.xml
            sessionFactory = new Configuration().configure().buildSessionFactory();
        } catch (Throwable ex) {
            // Make sure you log the exception, as it might be swallowed
//            System.err.println("Initial SessionFactory creation failed." + ex);
            throw new ExceptionInInitializerError(ex);
        }
    }

    public static SessionFactory getSessionFactory() {
        return sessionFactory;
    }
}

Really really needs help with this… can supply any code needed.

I have updated the HibernateUtil without the try/catch, now I get the exact excpeion:

SoapFault - faultcode: 'soapenv:Server' faultstring: 'org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;' faultactor: 'null' detail: org.kxml2.kdom.Node@4054b2c0

But the jar is deployed….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:36:57+00:00Added an answer on May 27, 2026 at 8:36 am

    From my experience with static block to initialize sessionFactory your issue lies in this line of code:

    sessionFactory = new Configuration().configure().buildSessionFactory();
    

    Looks like it is not able to get the datasource while building the sessionFactory.

    Can you log the exception uncomment this line and see whats being printed:

     System.err.println("Initial SessionFactory creation failed." + ex);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my applications i hav a terms and conditions view describing terms to use
I am trying to use the javascript extension in a blackberry webworks application.I hav
I hav problem with my Script. I use FreeBSD and SSH to start this
hi i hav a code like this in the end i m getting error
If using subsonic, i know you hav to close a datareader. but what if
I hav asp.net mvc 3 application. When user pass id of non existing object
I hav a table with several fields. One field is date_assigned and the other
I hav to save the values of NSUserDefault to the Array,and later on have
0 in my case i hav to navigate frm 1 screen to nthr aftr
i have created a multiple choice question .it hav 3 options in a custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.