Hello,
I'm trying to set up MySQL 8.0.11 database connection pooling in Tomcat 10.1.24 on Windows 10. The MySQL database is "holidays" with user name "root" and password "rootpwd". I've tried to follow the examples at https://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html #MySQL_DBCP_2_Example. Attached are my files context.xml, which I put in the Tomcat conf directory, and web.xml, which I put in my project WEB-INF directory. Also attached is my file DataSourceSingleton.java, which is the program file that crashes on the line dataSource = (DataSource) ctx.lookup("jdbc/holidays"); producing the error message javax.naming.NameNotFoundException: Name [jdbc/holidays] is not bound in this Context. Unable to find [jdbc]. in the Command Prompt where Tomcat is running. I must be missing some little thing. Can anyone help? Dan Schwartz
<<attachment: 24-06-17_apache.zip>>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org