This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Problem in Externalizing the Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Problem in Externalizing the Configuration" Watch "Problem in Externalizing the Configuration" New topic
Author

Problem in Externalizing the Configuration

sweety mehra
Greenhorn

Joined: Feb 09, 2007
Posts: 9
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?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in Externalizing the Configuration
 
Similar Threads
Error instantiating a datasource bean
Hibernate with Spring
problem while loading the welcome page
PropertyPlaceholderConfigurer loading external property file
spring with quartz example