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 170381 - Database driver deployment does not work
Summary: Database driver deployment does not work
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-14 14:36 UTC by Petr Jiricka
Modified: 2009-09-11 22:25 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 Petr Jiricka 2009-08-14 14:36:33 UTC
1. Register a MySQL connection in the IDE
2. Create a web project
3. Create Entities from Database using the MySQL database registered before
4. Deploy the project

The MySQL database driver should be copied to domains/domain1/lib, but it is not. The following appears in the server log:

Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20090731-r4765):
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is
not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource
Error Code: 0
        at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:308)
        at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:138)
        .....
Comment 1 Petr Jiricka 2009-09-02 12:46:13 UTC
Now Ken Ganfield told me that there is a checkbox "Enable JDBC Driver Deployment" in the plugin properties, which is off
by default. When this checkbox is checked, everything works as expected. Should not this checkbox be checked from the
beginning? The whole point of the driver deployment feature is that it provides out of box experience and avoids some
pitfalls of the initial setup which are hard to debug for many people. Having the checkbox off by default ruins the
whole out of box experience.
Comment 2 Vince Kraemer 2009-09-08 21:05:37 UTC
just need to turn this on...
Comment 3 Quality Engineering 2009-09-11 21:50:44 UTC
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2e37ee663060
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #170381: jdbc driver deployment was not turned on by default
Comment 4 Vince Kraemer 2009-09-11 22:25:11 UTC
in main-golden