Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-09-05
7
Medium Priority
?
1,515 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
5 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
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:
Gurvinder Pal Singh earned 2000 total points
ID: 36493460
No, struts.xml and hibernate.cfg.xml should be in WEB-INF folder

0
 
LVL 60

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…
Suggested Courses

782 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