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

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.
chaitu22Asked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
No, struts.xml and hibernate.cfg.xml should be in WEB-INF folder

0
 
Gurvinder Pal SinghCommented:
I guess there is some problem with mapping
http://www.manning-sandbox.com/thread.jspa?threadID=32515

please check the same
0
 
chaitu22Author Commented:
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
 
Kevin CrossChief Technology OfficerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 
chaitu22Author Commented:
You can go ahead and delete this!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.