Solved

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

Posted on 2011-09-05
7
1,448 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

631 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