• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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?
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic