• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.io.FileNotFoundException: ServletContext resource [/xml/dbconfig.cfg.xml] cannot be resolved to

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I am new to hibernate, I am using Spring and Hibernate for my application.In my application i am using two different data sources.,hence other than hibernate config.xml, i am having one dbconfig.cfg.xml file
I have specified the following tag for my sessionFactory in my springapp-servlet.xml ,





I am using Ant to build my project, though i have placed my file dbconfig.cfg.xml file in the path WEB-INF\classes\xml ,i am still getting the following error
Following is the stack trace which i get in the Weblogic log ,when i try to access my application


P.S:
I tried pasting the file in the src path like hibernateconfig.xml file ,but that too didnt work.

The stack trace




Can anyone please suggest me a solution? thank you in advance




reply
    Bookmark Topic Watch Topic
  • New Topic