【发布时间】:2016-05-01 17:29:21
【问题描述】:
我使用以下值创建了一个 JNDI 连接:
我选择了Generic Data Source 选项
名称:jdbc/sampleDataSource
JNDI 名称:jdbc/sampleDataSource
Spring 配置文件:
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/sampleDataSource" />
我遇到了错误。
Error An error occurred during activation of changes, please see the log for details.
Error javax.naming.NameNotFoundException: While trying to lookup 'jdbc.sampleDataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/sampleDataSource'
Error While trying to lookup 'jdbc.sampleDataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/sampleDataSource'
我无法解决它。 我如何在 Spring 4 中进行配置。 需要任何添加的 jar 文件。请帮忙。
【问题讨论】:
-
@Baderous:我试过
<jee:jndi-lookup id="dataSource" jndi-name="java:jdbc/sampleDataSource" />同样的错误。
标签: java spring jndi weblogic12c