• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

urgent..../hibernate.cfg.xml not found

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

we are trying to host a webservice using Axis2 version1,hibernate and db mysql.The service is successfully hosted but when we try to consume the web service , we get the following error in the JBoss 4.0.2 console

15:28:44,846 INFO [Environment] Hibernate 3.0.5
15:28:45,003 INFO [Environment] hibernate.properties not found
15:28:45,018 INFO [Environment] using CGLIB reflection optimizer
15:28:45,034 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
15:28:45,159 INFO [Configuration] configuring from resource: hibernate.cfg.xml
15:28:45,159 INFO [Configuration] Configuration resource: hibernate.cfg.xml
15:28:45,159 WARN [Configuration] hibernate.cfg.xml not found
15:28:45,175 INFO [STDOUT] %%%% Error Creating SessionFactory %%%%
15:28:45,175 INFO [STDOUT] org.hibernate.HibernateException: hibernate.cfg.xml
not found
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configura
tion.java:1087)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1111)
at com.vayama.util.DbUtil.currentSession(DbUtil.java:118)
at com.vayama.util.DbUtil.retreiveObjectByCriteria(DbUtil.java:86)
at com.vayama.businessservice.geocoderservice.logic.GeocoderService.reso
lveCityName(GeocoderService.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)


Thanx and Regards
Naag
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your Hibernate config in the classpath?
 
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic