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 130195

Summary: Cannot use existing JNDI registered Data Source to create "New Entity Classes from DB"
Product: serverplugins Reporter: jpleed3 <jpleed3>
Component: Sun Appserver 9Assignee: Nitya Doraisamy <nityad>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: domain.xml from user

Description jpleed3 2008-03-14 20:26:06 UTC
Server Environment: SJSAS 9.1 and MS SQL Server 2005 on Windows Server 2003 R2, MS SQL Server 2005 JDBC Driver 1.2
Dev Environment: NB 6.0 and 6.1 Beta on WinXP

Problem: In Netbeans 6.0 and 6.1 Beta, I cannot use an existing JNDI registered connection pool to create "New Entity 
Classes from Database". The datasources show up in the dialog, but if I select one, NB gives the error "Unable to find 
the driver .[sic] Register this driver in the Databases tab."

I have the JDBC driver listed under Services/Databases/drivers and am able to use it to create a JDBC connection uder 
the databases tab. I can also view the schema with said connection.
Comment 1 Nitya Doraisamy 2008-03-14 23:00:44 UTC
Could you attach the domain.xml of the server where these resources are registered to help debug this? 
Th issue is most probably because the plugin is not able to map the datasource/connection pool on the server to the
format expectd by the IDE. 
Comment 2 Nitya Doraisamy 2008-03-18 18:50:00 UTC
Created attachment 58609 [details]
domain.xml from user
Comment 3 Nitya Doraisamy 2008-03-20 02:38:32 UTC
Fixed.
http://hg.netbeans.org/main/rev/08a0fc1848a8
Comment 4 Nitya Doraisamy 2008-03-20 02:40:13 UTC
*** Issue 125416 has been marked as a duplicate of this issue. ***