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.
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.
Reproducible in the latest Nb 6.7 RC2 build.
I'm going to investigate it soon....
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.
Created attachment 83408 [details] PluginProperties patch.
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.
masaki: did you import settings at start-up? which servers do you have installed?
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.
> 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
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...
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.
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.
thanks for the additional info
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.
pushed to web-main
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
mschovanek/masaki, could you please verify this issue in trunk before we'll integrate the fix into release67 ? Thanks in advance.
Verified with Build 200906111401 on winXP, Mac OS x86 & OpenSolaris 2008.11, the problem was fixed
Great! I verified 200906111401 on Mac OS X 10.5.7. It works now.
http://hg.netbeans.org/release67/rev/da9435b4cbc5
maybe I will mark this as fixed
Verified in trunk by QE.
Yes, it's live. Thanks!