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 177777 - [68cat] Cannot create data source for default MySQL password
Summary: [68cat] Cannot create data source for default MySQL password
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 15:53 UTC by dynamite
Modified: 2009-11-29 21:21 UTC (History)
3 users (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 dynamite 2009-11-27 15:53:46 UTC
I am following the tutorial http://netbeans.org/kb/docs/web/jsf20-crud.html with a default installation of MySQL.  I am okay until I get to the section entitled "Generating the Entity Classes from the Database".  I step through the "New Entities from Database" wizard.  When I attempt to create a new data source I get the error message "The data source cannot be created if the password is not provided."

MySQL is set-up by default with the user root and the empty string as the password.  For most people experimenting this will be sufficient as they won't be storing any sensitive data.  It seems as though this is being interpreted as no password.
Comment 1 Petr Jiricka 2009-11-29 14:38:49 UTC
Not sure if this is on the JPA side or the server side. Are you using GlassFish? If so, can you please also try Tomcat?
Assingning to GlassFish for now (Sergey, who is responsible for JPA, is on vacation anyway).
Comment 2 Vince Kraemer 2009-11-29 20:18:42 UTC
You may want to follow the advice that is available here: http://blogs.sun.com/vkraemer/entry/no_passwordcredential_found
Comment 3 Vince Kraemer 2009-11-29 21:21:17 UTC
Please reopen this issue with more info about what issues you encounter, if you follow the cited advise and cannot proceed.