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 147138

Summary: unnecessary restart
Product: serverplugins Reporter: Vince Kraemer <vkraemer>
Component: Sun Appserver 9Assignee: Nitya Doraisamy <nityad>
Status: RESOLVED FIXED    
Severity: blocker CC: dlipin
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Vince Kraemer 2008-09-12 20:50:49 UTC
I installed the NB6.1+GFV2ur2+MySQL bundle.

After the install (and before I started the IDE or the server), I did a quick check of the directory tree and found:

gf-install-root/lib/mysql-connector-java-5.1.6-bin.jar

When I deployed a web app that used mysql, the file was copied to gf-install-root/domains/domain1/lib....

And the server restarted... BOOOO

doing the unnecessary copy is a p3.
doing the unnecessary restart makes this a p2 issue.
Comment 1 Nitya Doraisamy 2008-09-15 23:40:55 UTC
Plugin should check if required driver jar is present on the server and initiate copy & restart only if needed.
Comment 2 Nitya Doraisamy 2008-10-07 02:21:04 UTC
Fixed. Plugin now checks for driver jar in both install/lib and targeted domain's lib. 
The driver jar is copied (if required) to domain's lib
Comment 3 Quality Engineering 2008-10-07 06:02:31 UTC
Integrated into 'main-golden', will be available in build *200810070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5a14e602df55
User: nityad@netbeans.org
Log: #147138 : Fix for unnecessary copy & restart when driver jar already present server's install lib directory