• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Springs Application context

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
When starting up tomcat server , am getting the below exception
and here is my content in applicationContext.xml

<util:properties id="propertyFromOrder" location="file:orderCommon.properties"/>

Exception

ERROR context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertyFromOrder': Invocation of init method failed; nested exception is java.io.FileNotFoundException: orderCommon.properties (The system cannot find the file specified)
at org.springframework.bean

Any idea where should i place the orderCommon.properties file

Edited to disable smilies.
 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to place the properties file in the WEB-INF/classes folder. And you may want to change the tag to

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic