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 75841 - Better description how to add a driver
Summary: Better description how to add a driver
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
: 81851 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-03 14:09 UTC by Petr Blaha
Modified: 2009-11-02 11:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (162.00 KB, image/png)
2006-05-03 14:10 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2006-05-03 14:09:46 UTC
[Netbeans 5.5 beta build]
I created new JDBC datasource in GF and then tried used it in EJB project. In
new Entity classes from DB the new datasource was avalaible but when this
datasource is selected the error messages was displayed. However, user isn't
noticed how and where the driver should be added. In this dialog should be a
simple hint where add the driver. See screenshot.
Comment 1 Petr Blaha 2006-05-03 14:10:31 UTC
Created attachment 30208 [details]
screenshot
Comment 2 Libor Kotouc 2006-05-04 09:10:29 UTC
it would be nice to have possiblity to show the 'Add driver' dialog, but I guess
that some API change is needed for that.
Comment 3 Andrei Badea 2006-05-05 08:42:19 UTC
Already there: JDBCDriverManager.showAddDriverDialog().
Comment 4 Libor Kotouc 2006-08-04 10:45:20 UTC
*** Issue 81851 has been marked as a duplicate of this issue. ***
Comment 5 Roman Strobl 2007-01-29 12:31:35 UTC
Upping to P2. I keep getting this error and I don't know why - I have the JDBC
library in the AS domain1/lib directory, in the EJB project, I added a driver in
the resources tab, I'm connected to the database in the IDE, I created the data
source, resource pool and deployed the project, I can ping the pool from
Glassfish's admin console...

and I still keep getting the "Driver not found." error when using the New Entity
Classes from Database wizard. Grrr.
Comment 6 Sherold Dev 2007-06-27 09:27:44 UTC
Reassigning to j2ee/persistence
Comment 7 Andrei Badea 2007-06-28 14:59:11 UTC
The right way to fix this is probably to open the New JDBC Driver dialog with the needed driver class pre-filled. But
desc6 suggests that there is a bug in the Sun appserver plugin which makes it return a non-existing driver class. So for
now just made the error message display the class of the missing driver and leaving open.

Checking in j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Bundle.properties;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Bundle.properties,v  <--  Bundle.properties
new revision: 1.6; previous revision: 1.5
done
Checking in j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/DatabaseTablesPanel.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/DatabaseTablesPanel.java,v  <-- 
DatabaseTablesPanel.java
new revision: 1.11; previous revision: 1.10
done
Comment 8 Andrei Badea 2007-06-28 15:00:00 UTC
Roumen, please try to reproduce again and post the missing driver class here, together with the class of the driver that
you registered in the Database Explorer.
Comment 9 Roman Strobl 2007-06-29 12:44:10 UTC
I cannot reproduce the original error now, sorry, I can't verify it.
Comment 10 Andrei Badea 2007-07-26 15:10:03 UTC
The commit in desc8 lowers user impact, so downgrading to P3. Still needs to be fixed as described in desc8, not sure if
for 6.0.
Comment 11 Andrei Badea 2008-01-15 12:42:25 UTC
I am starting to think this is a P4 issue more than a P3 because of the very low user impact, but leaving as P3 for now.
Comment 12 Dongmei Cao 2008-07-02 00:15:24 UTC
Since user impact is lower now as indicated in the previous comment, low to P4
Comment 13 Dongmei Cao 2008-11-19 21:30:23 UTC
low priority bug
Comment 14 Quality Engineering 2009-11-02 11:16:15 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX