Description of problem: on rhbz #1214381 (almost 10 years ago, 2015-04-22 ) is claimed: Because tomcat-dbcp.jar is missing, if you define a JNDI DataSource in context.xml file (in either $CATALINA_BASE/conf/ or war) [1], tomcat fails to initialize DataSource, leaving the following logs: Now the /usr/share/java/tomcat/tomcat-dbcp.jar exit and Now the line [1] on /etc/tomcat/tomcat.conf give me [2] [1] JAVA_OPTS="-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory" Version-Release number of selected component (if applicable): tomcat-lib-9.0.87-2.el9.noarch How reproducible: start tomcat Actual results: [2] WARNING: Failed to register in JMX: [javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]] Expected results: no error connecting to database Additional info: please remove JAVA_OPTS="-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory" from /etc/tomcat/tomcat.conf I can send you one PR
Hi, to not lose my report on bugzilla I save it here , but it is more about tomcat on RHEL 9 [1] how we contact RH maintainer ? [1] https://gitlab.com/redhat/centos-stream/rpms/tomcat/-/blob/d06378f1d5279d4844d9a63c05812e1f0f8f8744/tomcat-9.0.conf#L38
the bug #1214381 link of rhbz #1214381
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.
This was report here: https://issues.redhat.com/browse/RHEL-78335 on Fedora , I need investigate this a little more , the line still the there for tomacat 9 , only on tomcat 10 it was removed