I created a JNDI connection with the following values:
i option selected Generic Data Source
Name : jdbc / sampleDataSource
JNDI Name : jdbc / sampleDataSource
Spring configuration file:
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/sampleDataSource" />
I am getting below the error.
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'
I could not solve it. How to configure in Spring 4. Any additional jar file is required. Please help with this.
source
share