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 166750 - 6.7 RC2: Java DB is not configured on Mac
Summary: 6.7 RC2: Java DB is not configured on Mac
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 04:05 UTC by Masaki Katakai
Modified: 2009-06-12 19:25 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
PluginProperties patch. (1.19 KB, text/plain)
2009-06-10 15:37 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2009-06-09 04:05:01 UTC
Product Version: NetBeans IDE 6.7 RC2 (Build 200906042131)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57
System: Mac OS X version 10.5.7 running on x86_64; SJIS; ja_JP (nb)

It looks Java DB is not configured on Mac OS X. I can not start Java DB
by just selecting "Start Server" on service window, it means Java DB
installation directory and Database Location are not predefined, those
are blank.

I tried 6.7 Beta on the same environment, it works fine.
Comment 1 Martin Schovanek 2009-06-09 12:29:03 UTC
Reproducible in the latest Nb 6.7 RC2 build.
Comment 2 Jiri Rechtacek 2009-06-10 05:42:31 UTC
I'm going to investigate it soon....
Comment 3 Jiri Skrivanek 2009-06-10 15:36:29 UTC
Finally I was able to reproduce it also on Windows Vista but only with JDK1.5. With JDK1.6 is Java DB/Derby registered
from JDK location, so this issue doesn't appear. My observation is that PROP_FIRST_RUN is set to true before it is
evaluated in org.netbeans.modules.j2ee.sun.ide.Installer. It is set prematurely in
org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties. With attached patch it works for me as expected. Question is
also whether RegisterDatabase.getDefault().setupDerby(prop) should not be called also in glassfish.common module. There
is similar logic with PROP_FIRST_RUN in classes GlassfishInstanceProvider and CreateDomain.
Comment 4 Jiri Skrivanek 2009-06-10 15:37:38 UTC
Created attachment 83408 [details]
PluginProperties patch.
Comment 5 Vince Kraemer 2009-06-10 16:06:51 UTC
should be easy to fix and should be fixed for FCS.

I will evaluate the situation in glassfish.common and correct any issue there as part of the final patch.
Comment 6 Vince Kraemer 2009-06-10 21:05:20 UTC
masaki: did you import settings at start-up?  which servers do you have installed?
Comment 7 Masaki Katakai 2009-06-10 22:23:36 UTC
No, I didn't select import setting at startup. I installed all servers (v2,v3 and tomcat) but
issue happens when I tried v2 and v3.
Comment 8 Masaki Katakai 2009-06-10 22:30:50 UTC
> No, I didn't select import setting at startup. I installed all servers (v2,v3 and tomcat) but
> issue happens when I tried v2 and v3.

I mean, I tried the following cases and issue happens in both cases:
 - v2+v3+tomcat
 - v2+v3
Comment 9 Vince Kraemer 2009-06-11 06:38:05 UTC
Hmm.  I have been looking at this in various builds... not installs... and have not been able to reproduce the problem.

Though I did run into something that is similar... which I may try to push into the release67 repo.

I am doing an install right now, to check some of the files associated with an install...

Comment 10 Vince Kraemer 2009-06-11 07:06:18 UTC
The files associated with an install do not look suspicious.

Please verify the steps necessary to replicate the issue.  I do not doubt that you have hit an issue, but I am having
trouble replicating it.
Comment 11 Masaki Katakai 2009-06-11 07:48:36 UTC
I just tried new RC3 build (200906110001) on
two Mac as different user. I got the same issue on both machines.

1. Download all installer netbeans-6.7rc3-macosx.dmg 
2. Install as usual user
3. I don't modify any option on installer
   it will install V2 and V3 by default. Ergonomics is ON.
4. Start NetBeans after removing .netbeans* in my home directory
5. Open Service window
6. Expand Database node
   Java DB is missing, it should be OK
7. Expand Server node
   V2 and V3 will be registered
   On Database node, Java DB is registered at this point
8. Try to open context menu of Java DB
   "Start Server" can not be selected.

Even when I un-selected Ergonomics at installer, the issue
still happened for me.
Comment 12 Vince Kraemer 2009-06-11 07:59:42 UTC
thanks for the additional info
Comment 13 Vince Kraemer 2009-06-11 08:22:45 UTC
I was able to replicate this in the trunk, using your steps.  I had been activating the 'Java EE and Web' features via
the plugin manager.

That procedure did not replicate the issue.

The patch is effective against the issue.
Comment 14 Vince Kraemer 2009-06-11 08:24:42 UTC
pushed to web-main
Comment 15 Quality Engineering 2009-06-11 18:42:20 UTC
Integrated into 'main-golden', will be available in build *200906111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9486d26dcae4
User: vince kraemer <vkraemer@netbeans.org>
Log: #166750: javadb auto registration problem
Comment 16 Marian Mirilovic 2009-06-11 21:50:33 UTC
mschovanek/masaki, 
could you please verify this issue in trunk before we'll integrate the fix into release67 ? Thanks in advance.
Comment 17 davisn 2009-06-11 23:21:04 UTC
Verified with Build 200906111401 on winXP, Mac OS x86 & OpenSolaris 2008.11, the problem was fixed
Comment 18 davisn 2009-06-11 23:25:05 UTC
Verified with Build 200906111401 on winXP, Mac OS x86 & OpenSolaris 2008.11, the problem was fixed
Comment 19 Masaki Katakai 2009-06-12 00:01:37 UTC
Great! I verified 200906111401 on Mac OS X 10.5.7. It works now.
Comment 20 Vince Kraemer 2009-06-12 00:13:53 UTC
http://hg.netbeans.org/release67/rev/da9435b4cbc5
Comment 21 Vince Kraemer 2009-06-12 02:44:24 UTC
maybe I will mark this as fixed
Comment 22 Martin Schovanek 2009-06-12 09:36:59 UTC
Verified in trunk by QE.
Comment 23 Jiri Kovalsky 2009-06-12 19:25:12 UTC
Yes, it's live. Thanks!