-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate in Axis2 on Tomcat5.5 -hibernate.cfg.xml not found
PostPosted: Wed Jul 22, 2009 5:28 pm 
Newbie

Joined: Wed Jul 22, 2009 5:20 pm
Posts: 1
Hello:
I've been trying to use Hibernate to get the data for our Axis2 web services that are deployed on Tomcat5.5
My DAO works from a JUnit test case.
However, when I hook it up to the web service and deploy the service on Tomcat, I get this error from my Java Client:
org.apache.axis2.AxisFault: java.lang.ExceptionInInitializerError on the client
and the server log has:
Caused by: org.hibernate.HibernateException: hibernate.cfg.xml not found

I've tried putting the xmls (hibernate.cfg.xml & <table>.hbm.xml) in -
axis2/.../WEB-INF/classes, axis2/...WEB-INF/conf it still doesnt work.

Where should these config files go?

Any help is highly appreciated!


Top
 Profile  
 
 Post subject: Re: Hibernate in Axis2 on Tomcat5.5 -hibernate.cfg.xml not found
PostPosted: Fri Jul 24, 2009 2:19 pm 
Newbie

Joined: Fri Jul 24, 2009 12:29 pm
Posts: 3
Hi,

did you consider using Spring with Axis2? There is already support for Spring in Axis2 and Spring supports Hibernate. Spring Framework could solve a lot of other problems, too. Sorry, that I can't give a direct answer, but this approach works for me fine.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.