weblogic datasource 설정
- 작성자 :
- 최*재
- 작성일 :
- 2011-09-15 13:22:00
- 조회수 :
- 2,211
- 구분 :
- 개발환경
- 진행상태 :
- 완료
Q
게시판을 찾아서 context-datasource.xml에 아래와 같이 설정했습니다.
<bean id="dataSource-oracle" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="jndiName" value="FTA_ds" />
<property name="jndiTemplate" ref="jnditemplate"/>
</bean>
<bean id="jnditemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://localhost:7001</prop>
</props>
</property>
</bean>
그런데 아래와 같은 에러가 발생해서 동작하지 않습니다.
context-security.xml에서 datasource를 못찾는다는 것 같습니다.
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securedObjectDAO' defined in file [D:\webroot\FTA\WEB-INF\classes\egovframework\spring\context-security.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource-oracle' defined in file [D:\webroot\FTA\WEB-INF\classes\egovframework\spring\context-datasource.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition
weblogic datasource 설정에 어떤 문제가 있을까요?
<bean id="dataSource-oracle" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="jndiName" value="FTA_ds" />
<property name="jndiTemplate" ref="jnditemplate"/>
</bean>
<bean id="jnditemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://localhost:7001</prop>
</props>
</property>
</bean>
그런데 아래와 같은 에러가 발생해서 동작하지 않습니다.
context-security.xml에서 datasource를 못찾는다는 것 같습니다.
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securedObjectDAO' defined in file [D:\webroot\FTA\WEB-INF\classes\egovframework\spring\context-security.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource-oracle' defined in file [D:\webroot\FTA\WEB-INF\classes\egovframework\spring\context-datasource.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition
weblogic datasource 설정에 어떤 문제가 있을까요?
A
안녕하세요.. 최영재님..
dataSource-oracle을 dataSource로 변경하시면 됩니다..
그럼.. 즐거운 하루되십시오.
감사합니다.
dataSource-oracle을 dataSource로 변경하시면 됩니다..
그럼.. 즐거운 하루되십시오.
감사합니다.