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.
[build 20051129] Steps: 1) create new JDBC connection to derby database without specifying port, e.g. jdbc:derby://localhost/your_db and test this connection in db explorer 2) have EJB module 3) add session bean 4) in session bean invoke Enterprise resources -> Use database 5) select this connection and click OK ERROR: get exception and sun resources are not created. Since connection without port is valid and Derby is primary database for NB 5.0 the issue should be fixed in NB 5.0 FCS.
Created attachment 27433 [details] stack trace
The plugin should provide a better error popup. But I don't think this will be a valid appserver connection pool resource. The port number will be required for this resource to be used by an app when deployed to the server.
In this case, default this value ot the default port number of derby in the server. To get this value, you can check the default connection pool already registered in 8.2 and get the port number from there when the server is running. Or you put some default value.
Fixed url parse to handle variuos types of url. Also using default values for derby when port and username/password are not available
build 200602072300