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 69094 - Donn't change the Derby Location if it is already configured
Summary: Donn't change the Derby Location if it is already configured
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-22 12:50 UTC by Martin Schovanek
Modified: 2007-02-06 17:24 UTC (History)
2 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 Martin Schovanek 2005-11-22 12:50:59 UTC
[#200511211900, jdk1.5.0]

When the AS 8.2 is added to Nb with already installed Derby from UC, it changes
the Derby Location and Driver File(s) for registered drivers, to Derby folder
from the AS.

We should display a Warning dialog that this changes happen.
Comment 1 Martin Schovanek 2005-11-22 14:40:32 UTC
to reproduce:
-------------
1) install Derby from Update Center
2) chose Customize from 'Databases > Drivers > Appache Derby (Net)' driver node
NOTE: derbyclient.jar cames from Derby from UC
3) add AS 8.2 server into Nb
4) chose Customize from 'Databases > Drivers > Appache Derby (Net)' driver node
NOTE: derbyclient.jar cames from Derby from AS 8.2
ERROR: the .jar location was changed without a warning
Comment 2 _ ludo 2005-11-22 16:26:45 UTC
Might not be possible in some case when we do automatic server regsitration
(cobundle case) when the call can happen even if Netbeans is not fully started
(i.e no ui to emit the warning). We could emit something in the conseole (or log
file)?

Also, I am not sure about the Derby db from UC. Is is part of NetBeans 5.0 plan?
Not really, so I would not say currently that this is a P3 bug...
Please add your comments.
Enhancement? Or maybe the warning should come from the Derby module?
Comment 3 Martin Schovanek 2005-11-22 17:33:19 UTC
In case of automatic (cobundle) registration is not a reason to display a
warning,  because there will not be a previous driver/connection registration.
It should be done only in case when we are changing existing driver/connection
registration.

To UC Derby: I can reproduce it with manually downloaded/reistered Derby and
Derby Support module from daily builds and it is part of NetBeans 5.0 plan.

There is only one difference, at first there is both drivers registrations, from
my own location and from AS. After Nb restart situation is the same. Only
drivers from AS and my previously registered drivers disappeared.

To display the warning from the Derby module makes no sense for me, the Add AS
wizard looks like much better place for me.






Comment 4 _ ludo 2005-11-23 16:44:59 UTC
there will be no derby implementation on AU.
So no duplication or confusion.
Comment 5 Martin Schovanek 2005-11-24 08:49:23 UTC
Sorry to say this but it does not depend on AU. It is reproducible with manually
downloaded/reistered Derby as well. See my previous comment.
Comment 6 _ ludo 2005-11-24 21:06:33 UTC
The AS does not change anything now if things are already configured.
Comment 7 Martin Schovanek 2005-11-30 16:31:29 UTC
Reproducible in #200511291900
Comment 8 Petr Jiricka 2005-12-05 22:32:24 UTC
Well, given the fact that the way to manually register own instance of Derby
through system options is not easily discoverable, I would argue that not many
users will run into this issue and this is not too important to fix for NB 5.0 -
we have bigger fish to fry. Also, is it really an issue that the Derby install
path changes? If future versions of the Appserver keep up with latest versions
of Derby, then the user will get the latest Derby in Appserver, and will not
need to manually download better versions.
Comment 9 Martin Schovanek 2005-12-06 17:07:21 UTC
I discussed it with Peter J. and agree this issue is not so clear now, so I
describe the problem again.

Current status:
----------------
When the AS 8.2 is added to Nb with already installed Derby, it changes the
Derby Location (place where Derby's jar files are kept) and Driver File(s) for
registered drivers to AS Derby location.

It causes two problems:
1) Derby stops working when the AS is physically uninstalled
2) user starts using another Derby without any warning or info

Desirable state:
----------------
As Ludo suggested, does not change anything if Derby Location is already configured.

Justification:
--------------
- AS bundles 'Derby 10.1.1.0' but Latest Official Release is 'Derby 10.1.2.1' so
users can use the latest version.
- Probably all of J2SE developers which only try and uninstall the AS, run into
this issue.
Comment 10 _ ludo 2005-12-08 04:00:58 UTC
/cvs/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/db/RegisterPointbase.java,v
 <--  RegisterPointbase.java
new revision: 1.16; previous revision: 1.15
Comment 11 Martin Schovanek 2007-02-06 17:24:11 UTC
v.