Bug 2331858 - plaser revert the fix done on rhbz #1214381
Summary: plaser revert the fix done on rhbz #1214381
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: tomcat
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Coty Sutherland
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-11 23:04 UTC by Sergio Basto
Modified: 2025-03-04 20:59 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sergio Basto 2024-12-11 23:04:48 UTC
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

Comment 1 Sergio Basto 2024-12-11 23:12:11 UTC
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

Comment 2 Sergio Basto 2024-12-11 23:13:51 UTC
the bug #1214381 link of rhbz #1214381

Comment 3 Aoife Moloney 2025-02-26 13:19:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 4 Sergio Basto 2025-03-04 20:59:24 UTC
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


Note You need to log in before you can comment on or make changes to this bug.