Factory method 'dataSource' threw exception; nested exception is javax.naming.NameNotFoundException
I'm trying to setup hibernate + spring for my demo project with using JNDI. For this purposes, I selected Baeldung manual. But there is an error (see stack trace in the end). Any of same topics didn't help me. Any ideas how to fix it? Db connection testing My Steps: 1 Open and add resources in [tomcat_home]/conf/server.xml file Tomcat server.xml file content <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Co
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.