Bug 900806 (JBEWS-178)
Summary: | Tomcat7: ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | Zbyněk Roubalík <zroubali> | |
Component: | unspecified | Assignee: | Permaine Cheung <pcheung> | |
Status: | CLOSED NEXTRELEASE | QA Contact: | ||
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | unspecified | CC: | dknox, jstefl, pcheung, weli, zroubali | |
Target Milestone: | --- | |||
Target Release: | 2.0.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
URL: | http://jira.jboss.org/jira/browse/JBEWS-178 | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 969023 (view as bug list) | Environment: |
RHEL6, jdk7
|
|
Last Closed: | 2012-09-20 08:20:38 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 969023 |
Description
Zbyněk Roubalík
2012-08-21 18:09:46 UTC
Link: Added: This issue relates to JBPAPP-9551 David, can you please take a look? Thanks This is a repeat of jbpapp-6306 and jbpapp-3749. The EWS/tomcat builds do not include tomcat-dbcp. Instead, commons-dbcp, commons-collections, and commons-pool. There is little difference between the two since tomcat-dbcp is a conglomerate of the three changing the package name to o.a.tomcat.dbcp versus o.a.commons.dbcp If using the RPM distro - edit /etc/tomcatX/tomcatx.conf. Search for 3749 and delete the comment from the JAVA_OPTS line. If using the Zip distro - edit catalina.sh. Search for JAVA_OPTS. Beneath the commented SecurityListener add one line: JAVA_OPTS="$JAVA_OPTS -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory" The above was done previously viz 6306 and 3749. I will go through all of the ews1,2 builds and remove the comment from tomcatx.conf for the rpms, and fix catalina.sh in the zip. When that's done I'll resolve and reassign to Permaine. --david I'm using ZIP distro, I put the line in catalina.sh, but it isn't working. I got an exception: [http://pastebin.test.redhat.com/103044] Yep. I ran into that last night. It seems there is a packaging problem, i.e., the wrong package name (o.a.tomcat. versus o.a.commons). Wei Nan and I are working on it. The second problem above is because the java package names between commons-[collections,pool,dbcp]-tomcat-eap6 do not agree. The java package name in collections,pool-tomcat-eap6 jars is org.apache.tomcat, while the java package name in both dbcp jars is org.apache.commons The java package names among the three jars must be org.apache.commons or org.apache.tomcat.dbcp. To fix the commons-dbcp package Weinan, please work with David on this one to see what is needed by Tomcat. We have uniformed name of all these -eap6 packages. Currently the package name: [./org/apache/tomcat/dbcp/dbcp/BasicDataSourceFactory.class] I'll verify the tomcat7 in ER9. Verified the bug has been fixed in our tomcat7. Here is the detail information: [https://gist.github.com/3713978] Verified on EWS 2.0.0.ER10 Docs QE Status: Removed: NEW |