Hello again
I sent the following message yesterday. Is anyone going to reply? I'm totally stuck. If no one can help, then I will have no alternative but to abandon Tomcat and try some alternative. Dan Schwartz From: Daniel Schwartz <d...@danielgschwartz.com> Sent: Monday, June 17, 2024 4:19 PM To: users@tomcat.apache.org Subject: Tomcat MySQL Connection Pooling JNDI lookup 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
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org