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 79657 - New Entity Classes from DB wizard creates invalid datasource
Summary: New Entity Classes from DB wizard creates invalid datasource
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-07-04 09:46 UTC by Martin Schovanek
Modified: 2006-07-26 00:51 UTC (History)
1 user (show)

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 Martin Schovanek 2006-07-04 09:46:00 UTC
[#200606040200, jdk1.5.0, GlassFish b48]

to reproduce:
-------------
1) create a Web Project and use external server (without Sample database) for
execution
2) invoke 'New Entity Classes from DB' wizard
3) close it
ERROR: the wizard creates invalid jdbc/sample datasource (the Sample database
does not exist)
4) remove the invalid datasource
5) invoke the wizard again
ERROR: the datasource appears again

IMHO the datasurce should be created during server registration only when the
Sample database exists.
Comment 1 Andrei Badea 2006-07-25 10:49:32 UTC
The jdbc/sample data source is always created on the remote server if it doesn't
exist. Seems caused by the appserver plugin.
Comment 2 Nitya Doraisamy 2006-07-26 00:51:31 UTC
The sample resources are created only in the local case now. At this point,
there is no easy way of identifying if the sample database exists on the remote
machine.