I created a JNDI connection with the following Values:
i selected Generic Data Source
option
Name: jdbc/sampleDataSource
JNDI Name: jdbc/sampleDataSource
Spring Config File:
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/sampleDataSource" />
I'm getting below 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 was unable to resolve it. How do i configure in Spring 4. Any addition jar file is required. Please help on this.