Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: java.lang.ClassNotFoundException: com.mchange.v2.log.MLog
https://bugzilla.redhat.com/show_bug.cgi?id=735460
Summary: java.lang.ClassNotFoundException:
com.mchange.v2.log.MLog
Product: Fedora
Version: 15
Platform: Unspecified
OS/Version: Linux
Status: NEW
Severity: high
Priority: unspecified
Component: c3p0
AssignedTo: fedora(a)matbooth.co.uk
ReportedBy: tlestach(a)redhat.com
QAContact: extras-qa(a)fedoraproject.org
CC: fedora(a)matbooth.co.uk,
java-sig-commits(a)lists.fedoraproject.org
Classification: Fedora
Story Points: ---
Type: ---
Description of problem:
According to
http://www.mchange.com/projects/c3p0/index.html#configuring_logging :
com.mchange.v2.log.MLog
Determines which library c3p0 will output log messages to. By default, if log4j
is available, it will use that library, ...
We do not have com.mchange.v2.log.MLog set, and following package versions are
installed:
log4j-1.2.16-7.fc15.noarch
apache-commons-logging-1.1.1-15.fc15.noarch
Hibernate fails to initialize with: java.lang.ClassNotFoundException:
com.mchange.v2.log.MLog
Version-Release number of selected component (if applicable):
c3p0-0.9.2-0.5.pre1.fc15.noarch
How reproducible:
always on Fedora 15
Steps to Reproduce:
1. Install Spacewalk (
https://fedorahosted.org/spacewalk/) on Fedora 15
2. Navigate to Spacewalk WebUI
Actual results:
=====================================
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/6.0.32
=====================================
This is caused by hibernate initialization failure due to
java.lang.ClassNotFoundException: com.mchange.v2.log.MLog
(java.lang.NoClassDefFoundError: com/mchange/v2/log/MLog)
Expected results:
log4j would be used by default causing no exceptions
Additional info:
1)
Seems that replacing the /usr/share/java/c3p0.jar
with
http://mirrors.ibiblio.org/pub/mirrors/maven2/c3p0/c3p0/0.9.0.2/c3p0-0.9....
resolves the problem
2)
Until now we used
http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/c3p0-0.9.1.2-2.j...
without any issues. Now the Fedora 15 c3p0 version has higher version and gets
installed instead of the jpackage version.
2)
Looking at:
# rpm -q c3p0
c3p0-0.9.2-0.5.pre1.fc15.noarch
# rpm -ql c3p0
/etc/maven/fragments/c3p0
/usr/share/doc/c3p0-0.9.2
/usr/share/doc/c3p0-0.9.2/CHANGELOG
/usr/share/doc/c3p0-0.9.2/LICENSE
/usr/share/doc/c3p0-0.9.2/RELEASE_NOTES-c3p0-0.9.2-pre1
/usr/share/doc/c3p0-0.9.2/index.html
/usr/share/java/c3p0.jar
/usr/share/maven2/poms/JPP-c3p0.pom
it seems that c3p0 isn't correctly packaged.
I would expect /usr/share/java/c3p0.jar to be a symlink to
/usr/share/java/c3p0-0.9.0.2.jar
3)
Due to this bug, Spacewalk on Fedora 15 is unusable. Please, check it.
--
Configure bugmail:
https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.