서버 Tomcat 기동시 에러
- 작성자 :
- 유*호
- 작성일 :
- 2010-10-06 10:58:29
- 조회수 :
- 4,398
- 구분 :
- 기타
- 진행상태 :
- 완료
Q
허드슨에서 배포한 war파일을 unix 서버에 올려서 풀고 서버 tomcat을 구동하면 에러가 발생합니다.
***에러내용***
Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'config' defined in file
[/usr/apache/tomcat/webapps/ROOT/WEB-INF/classes/spring/context-config.xml]: Could not resolve placeholder 'crypto.password'
src/main/resources/spring밑에 있는
***context-config.xm내용***
<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<context:property-placeholder location="classpath*:spring/crypto_config.properties" />
<bean id="config" class="egovframework.rte.fdl.crypto.CryptoConfig">
<property name="password" value="${crypto.password}" />
<property name="algorithm" value="${cyrpto.algorithm}" />
<property name="passwordAlgorithm" value="${crypto_password.algorithm}" />
</bean>
</beans>
***crypto_config.porperties 내용***
crypto.password=bqS1s/mxzXQMft1NRT7kug==
cyrpto.algorithm=PBEWithSHA1AndDESede
crypto_password.algorithm=
***에러내용***
Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'config' defined in file
[/usr/apache/tomcat/webapps/ROOT/WEB-INF/classes/spring/context-config.xml]: Could not resolve placeholder 'crypto.password'
src/main/resources/spring밑에 있는
***context-config.xm내용***
<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<context:property-placeholder location="classpath*:spring/crypto_config.properties" />
<bean id="config" class="egovframework.rte.fdl.crypto.CryptoConfig">
<property name="password" value="${crypto.password}" />
<property name="algorithm" value="${cyrpto.algorithm}" />
<property name="passwordAlgorithm" value="${crypto_password.algorithm}" />
</bean>
</beans>
***crypto_config.porperties 내용***
crypto.password=bqS1s/mxzXQMft1NRT7kug==
cyrpto.algorithm=PBEWithSHA1AndDESede
crypto_password.algorithm=
A
안녕하세요.. 유재호님.
우선 /usr/apache/tomcat/webapps/ROOT/WEB-INF/classes/spring/ 밑에.. crypto_config.properties 파일이 존재하는지 확인해 보시면 될 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
우선 /usr/apache/tomcat/webapps/ROOT/WEB-INF/classes/spring/ 밑에.. crypto_config.properties 파일이 존재하는지 확인해 보시면 될 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.