This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 84176 - Wrong classname used when deploying with IBM DB2 drivers
Summary: Wrong classname used when deploying with IBM DB2 drivers
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-05 06:27 UTC by _ jimdavidson
Modified: 2006-09-11 20:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ jimdavidson 2006-09-05 06:27:56 UTC
I added the IBM DB2 driver, opened a connection, and built a simple app that
used the data.  When I deployed the app, deployment failed:

Classname is wrong or classpath is not set for: com.ibm.db2.jdbc.DB2DataSource

This is the DatasourceClassname from the new connection pool.  Based on the
driver jar file, it should be: com.ibm.db2.jcc.DB2DataSource
Comment 1 _ ludo 2006-09-05 15:24:10 UTC
easy fix, needed for 5.5.
Thanks
Comment 2 Nitya Doraisamy 2006-09-07 23:31:23 UTC
Do you have access to what the XA DatasourceClassname would be for this?
The plugin allows the creation of both types and I have been unable to obtain
this value.
Comment 3 _ jimdavidson 2006-09-07 23:46:42 UTC
Based on scanning the jar file with javap, it looks like:

com.ibm.db2.jcc.DB2XADataSource

That implements javax.sql.XADataSource, which I assume is what you want.
Comment 4 Nitya Doraisamy 2006-09-11 20:00:03 UTC
Updated plugin with correct datasource classnames

Checking in CPWizard.xml;
/cvs/serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/sunresources/beans/CPWizard.xml,v
 <--  CPWizard.xml
new revision: 1.1.16.3.2.4; previous revision: 1.1.16.3.2.3
done