Solved

Hibernate:::Initial SessionFactory creation failed.org.hibernate.HibernateException: could not init listeners

Posted on 2011-09-05
7
1,398 Views
Last Modified: 2013-11-24
Hi,

I am getting this exception in the console in the eclipse.

Initial SessionFactory creation failed.org.hibernate.HibernateException: could not init listener.

I am using Struts 2 with hibernate 3.
I am just using saveorupdate command to save to database.I am getting this exception,

Please some one help me..
I am strugging with this exception from 2 days.

If you need more details..please ask me...

Thanks a lot..

Regards,
Chaitu.
0
Comment
Question by:chaitu22
  • 2
  • 2
7 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36486424
I guess there is some problem with mapping
http://www.manning-sandbox.com/thread.jspa?threadID=32515

please check the same
0
 

Author Comment

by:chaitu22
ID: 36492212
I have done the modfications..but now i am getting resource not found exception.
I have kept web.xml in web-inf folder.
I have kept struts.xml and hibernate.cfg.xml in WEB-INF/classes folder.

Please suggest.
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
    <!-- Configuration for the default package. -->
    <package name="default" extends="struts-default">
        <action name="LoginAction" class="com.first.LoginAction">
            <result name="input">/login.jsp</result>
            <result name="success">/success.jsp</result>
        </action>
    </package>
</struts>

Open in new window

0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36493460
No, struts.xml and hibernate.cfg.xml should be in WEB-INF folder

0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 36935256
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 

Author Comment

by:chaitu22
ID: 36907106
You can go ahead and delete this!!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question