JSF 2.0、Spring 3.1 を使用して Web アプリケーションを開発しています。
アプリケーションをデプロイすると、次のエラーが発生します
ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'AllProjectDetailsBean' defined in ServletContext resource [/WEB-INF/springApp-spring.xml]: Could not resolve placeholder 'OutputFilePath'
アプリケーション コンテキスト ファイル
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd ">
<aop:aspectj-autoproxy />
<bean id="placeholderConfig"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
</bean>
<bean id="AllProjectDetailsBean"
class="com.tcs.srl.expertFinder.sections.ProjectDetailsBeanFactory"
factory-method="createInstance">
<constructor-arg index="0" value="${OutputFilePath}" />
</bean>
エラーから私が理解しているのは、アプリケーションをデプロイすると、コンテキストが初めてロードされますが、OutputFilePathという名前のプロパティが見つからないため失敗することです。つまり、コンテキストが読み込まれる前に、 OutputFilePathという名前のシステム プロパティを設定する必要があります。
jsf アプリケーションのデプロイ中またはコンテキストのロード前にシステム プロパティを設定する方法を教えてください。
または、このエラーを削除するオプションはありますか。
助けてください
ありがとう