Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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

Problem in Externalizing the Configuration

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am externalizing the configuration properties in Spring by using a seperate properties file."data.properties"
and then I configure the following bean in my bean wiring file:

<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>data.properties</value>
</property>
</bean>
and
<bean id="receive" class="package1.package2.utility.receive" abstract="false" singleton="false" lazy-init="default" autowire="default" dependency-check="default">
<property name="Url">
<value>${data.Url}</value>
</property>
</bean>

But on deploying this war on WebLogic 8 .I am getting following problem :
Exception:weblogic.management.ApplicationException: start() failed. Module: ITdata Error: weblogic.management.DeploymentException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/data.properties] - with nested exception: [java.io.FileNotFoundException: Could not open ServletContext resource [/data.properties]]


Should i put under src or inWebrrot/web-inf/classes?
 
reply
    Bookmark Topic Watch Topic
  • New Topic