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.
If MySQL is installed without specifying a password, then a Password property cannot be created in the Connection pool. A couple of ways to reproduce: First install MySQL without a root password (or change the root password to blank) and Connect to MySQL using the Services window and create a new sample database (sample, travel or vir) 1) Create a new Web Application using the Visual Web framework 2) Using the Palette, drag and drop a Dropdown component 3) From Services, drag and drop a database table from the sample database connection 4) Execute Result- error in browser, No PasswordCredential found Another way to reproduce: 1) Create a new Java Web application 2) try to a Connection pool for the datasource of the sample database Result- the connection pool dialog won't allow a pool to be created without a password.
The 'another way' got cleaned up recently in 6.5... if a property value is empty, the error message at the bottom of the wizard should include the 'Use "()" ...' hint. I think the first method comes from the ResourceConfigurator.java
John, Could you attach the project created using the first method?
Created attachment 71252 [details] Visual Web project connecting to MySQL
The plugin zero config and resource wizards need to be updated to accept empty password for connection pools. I noticed that the 'Use Database ..' context action does not allow selecting a valid database connection with empty password. Will fix the plugin to accept empty password's for connection pools. Filed Issue 149317 for 'Use Database ..' action to accept empty password.
fixed
Integrated into 'main-golden', will be available in build *200810071401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/18e988beec86 User: nityad@netbeans.org Log: #149286 : Handle empty password in create cp resource using wizard from existing connection. Also accept empty password via zero-config and store as '()'