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 82485 - Bad DB URL for jdbc/samples in New Database Connection
Summary: Bad DB URL for jdbc/samples in New Database Connection
Status: VERIFIED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-11 14:25 UTC by Jaroslav Pospisil
Modified: 2006-10-02 14:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (107.58 KB, image/png)
2006-08-11 14:25 UTC, Jaroslav Pospisil
Details
messages.log (83.91 KB, text/plain)
2006-08-11 14:26 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2006-08-11 14:25:03 UTC
Build 200608110000,jdk1.6.0

Create new web module on glassfish with JSF support.
Invoke New Entity Classes from database wizard and select jdbc/samples as
Datasource. New database Connection wizard is displayed with Database URL set to:
"jdbc:derby://localhost:1527/sun-appserv-samples" , which is wrong and when
pressed OK,it fails with Unable to add connection error message. 
There exists workaround - if glassfish is already started,before I invoke the
wizard,then URL is correctly set and no problem arises.
Attaching screenshot and messages.log.
Comment 1 Jaroslav Pospisil 2006-08-11 14:25:49 UTC
Created attachment 32832 [details]
screenshot
Comment 2 Jaroslav Pospisil 2006-08-11 14:26:38 UTC
Created attachment 32833 [details]
messages.log
Comment 3 _ ludo 2006-08-11 19:15:02 UTC
Can you check that in this server, this "jdbc/samples" name  is not bound to
sun-appserv-samples?

In this case, the plugin would still return the correct value...
Comment 4 _ ludo 2006-08-11 19:17:22 UTC
did you play with other samples (EE tutorial, Bp catalog) that would have
used/registered this sun-appserv-samples db name to the server?
Comment 5 Nitya Doraisamy 2006-08-11 20:09:46 UTC
Could you attach the domain.xml. That will help in debugging this. 
Comment 6 Nitya Doraisamy 2006-08-11 21:37:28 UTC
Could not reproduce with Build 200608110000, Glassfish V1 UR1 Build 06
09-August-06 ( jdk 1.5..)
I don't think the difference in jdk could cause this issue. 

Will investigate again after the user attaches the domain.xml.
Comment 7 Nitya Doraisamy 2006-08-18 22:16:56 UTC
Cannot reproduce. Please reopen the issue with associted domain.xml if you can
reproduce the issue
Comment 8 Jaroslav Pospisil 2006-10-02 14:25:24 UTC
VERIFIED