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 120208 - [60cat] cant deploy web application while ide has db connection created for postgresql
Summary: [60cat] cant deploy web application while ide has db connection created for p...
Status: RESOLVED DUPLICATE of bug 119278
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Other Other
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 16:43 UTC by pbelbin
Modified: 2007-10-31 22:22 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 pbelbin 2007-10-26 16:43:27 UTC
[ BUILD # : beta2 ]
[ JDK VERSION : 1.6.0_03 ]

I have a visual web project that's needing to connect with a
PostgreSQL database.

When I try to deploy, the IDE hangs. 

The output log gets to "Checking for missing JDBC drivers ..." and
the Glassfish log stops   
at "Application server startup complete.". 

If I remove the datasource definition in the IDE, the project name
stays red showing there are issues, but the project is then able to
be built and deployed successfully.

Of course, at that point, the ide can not be used to do any
development work since the db connection has been removed.

This is a major hassle.
Comment 1 John Baker 2007-10-26 18:28:17 UTC
There was a bug in serverplugins that unfortunately was fixed after beta2.
http://www.netbeans.org/issues/show_bug.cgi?id=119278

To restore the database connection, right-click on the project and choose Resolve Database Problem.
The dialog will help restore the database connection.

To workaround the "Checking for missing JDBC drivers..." you could try copying the Postgres driver to the
Glassfish installation lib directory.  To see the installation directory of Glassfish from the Services window, select the
node representing Glassfish and view the Properties
Comment 2 Nitya Doraisamy 2007-10-26 19:17:25 UTC
This was fixed in trunk (119278) and is fixed in the daily builds. But did not make it into beta2. 
 
To workaround, you can disable JDBC Driver deployment at Services->GlassFish V2->Properties->Options->JDBC Driver(s)
Deployment Enabled.

You will be able to have the database connections in the IDE. But the plugin will not try to copy the driver jars. You
will manually need to place it in the server's classpath.



*** This issue has been marked as a duplicate of 119278 ***
Comment 3 pbelbin 2007-10-26 19:28:17 UTC
thank you for all the help in making the connection with the other issue that's already been resolved, and, how to work 
around the issue in the beta2 release.

keep up the good work people!
Comment 4 pohl 2007-10-31 17:47:38 UTC
The workaround that nityad suggests in this issue did not work for me (NB6b2)

Comment 5 John Baker 2007-10-31 18:20:13 UTC
deployment still hangs and the message still appears  "Checking for missing JDBC drivers ..." ?

Maybe restarting NetBeans
Comment 6 pohl 2007-10-31 20:54:39 UTC
Restarting NB6b2 did not help matters.

I tried reporting the exception that netbeans caught, but the website recognized it as belonging to
this closed issue and ignored it. :-/
Comment 7 Nitya Doraisamy 2007-10-31 22:22:40 UTC
Confirmed that suggested workaround disabling "JDBC Driver(s)Deployment Enabled" is still causing the driver jar copy to
be aatempted. Filed issue http://www.netbeans.org/issues/show_bug.cgi?id=120731