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.
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) .....
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.
just need to turn this on...
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
in main-golden