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 144222 - [65cat] GlassFish V2 UR2 is not integrated in the IDE
Summary: [65cat] GlassFish V2 UR2 is not integrated in the IDE
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
: 126415 147870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-18 08:13 UTC by alcmontejo
Modified: 2008-10-10 20:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
latest installation log file (2.95 MB, text/plain)
2008-08-18 09:59 UTC, alcmontejo
Details
netbeans config build Dev 200808170243 (1.62 KB, text/plain)
2008-08-18 10:21 UTC, alcmontejo
Details
message log of dev build 200808170243 (99.26 KB, text/plain)
2008-08-18 12:02 UTC, alcmontejo
Details
netbeans profile 61 (63.71 KB, text/plain)
2008-08-18 12:44 UTC, alcmontejo
Details
folder config on ~\.netbeans\6.1 (268.85 KB, text/plain)
2008-08-19 00:05 UTC, alcmontejo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alcmontejo 2008-08-18 08:13:23 UTC
hi!

Good day!

I downloaded the latest build 200808170243 and was successfully installed both GF V2 R2 and GF V3 prelude, After the installation I check 
the servers and I found only GF V3. I need to manually add the V2 from the server.

Thanks and more power,
Allen Montejo
Comment 1 dlipin 2008-08-18 09:43:15 UTC
could you please attach the latest installation log from %USERPROFILE%/.nbi/log ?
Does the issue go away when you delete the netbeans userdir (~/.netbeans/dev)
Comment 2 alcmontejo 2008-08-18 09:59:38 UTC
Created attachment 67671 [details]
latest installation log file
Comment 3 alcmontejo 2008-08-18 10:01:22 UTC
hi!

I only delete my dev folder because I still have the 6.1 installed in my machine

Thanks and more power,
Allen Montejo
Comment 4 dlipin 2008-08-18 10:06:53 UTC
Hi,

The installation looks fine.

> I only delete my dev folder because I still have the 6.1 installed in my machine
Did it help? Did GlassFish v2ur2 appeared in the IDE after you deleted this folder (~/.netbeans/dev)?

Thanks,
Dmitry

Comment 5 alcmontejo 2008-08-18 10:12:55 UTC
hi!

It wont work. Every time  I installed new build I always do clean-up. I always delete only "dev" folder not the ~/.netbeans.
Does it matter? should I delete all the folder from ~/.netbeans?

Thanks,
Allen Montejo
Comment 6 dlipin 2008-08-18 10:16:33 UTC
Hi Allen,

> should I delete all the folder from ~/.netbeans?
No, it is not necessary, removing "dev" should be enough.

Could you please the netbeans.conf file
C:\Program Files\NetBeans Dev 200808170243\etc\netbeans.conf
?

Thanks,
Dmitry
Comment 7 dlipin 2008-08-18 10:19:21 UTC
Correction:
Could you please the netbeans.conf file->
Could you please attach the netbeans.conf file.

:)
Comment 8 alcmontejo 2008-08-18 10:19:58 UTC
this is its content:

# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/dev"

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-Dorg.glassfish.v3.installRoot=\"C:\Program Files\glassfish-v3-prelude-b18\" -J-Dcom.sun.aas.installRoot=\"C:\Program 
Files\glassfish-v2ur2\" -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-
Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.

# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_02"

# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.

Comment 9 alcmontejo 2008-08-18 10:21:48 UTC
Created attachment 67674 [details]
netbeans config build Dev 200808170243
Comment 10 dlipin 2008-08-18 10:27:52 UTC
Everything looks fine for me in this file: I see system property com.sun.aas.installRoot passed correctly.

I am reassigning this issue to Vince Kraemer who is responsible for the IDE plugin and integration.
Comment 11 alcmontejo 2008-08-18 10:29:14 UTC
Thanks for the prompt reply.

Thanks,
Allen Montejo
Comment 12 dlipin 2008-08-18 10:33:01 UTC
thanks you for the extraordinary quick responses ;)
Comment 13 dlipin 2008-08-18 11:57:53 UTC
Hi Allen,

Could you please also attach file %USERPROFILE%/.netbeans/dev/var/log/messages.log?

Thanks,
Dmitry
Comment 14 alcmontejo 2008-08-18 12:02:24 UTC
Created attachment 67687 [details]
message log of dev build 200808170243
Comment 15 dlipin 2008-08-18 12:10:56 UTC
Thanks.
Just to check - do you import any NetBeans settings from any previous version (this dialog can be shown at the first 
start of the IDE)?
Comment 16 alcmontejo 2008-08-18 12:17:35 UTC
yes so that I my web project configuration will not broke and also my customized library,

oh i see, that might be the cause, maybe I remove the server from that setting and it was carry 
to the current. am my right? or else?

Thanks,
Allen Montejo
Comment 17 dlipin 2008-08-18 12:25:23 UTC
Hi Allen, 


> yes so that I my web project configuration will not broke and also my customized library,

> oh i see, that might be the cause, maybe I remove the server from that setting and it was carry 
to the current. am my right? or else?

no, please, don`t remove it right the moment:) I think that probably the "Import Setting" functionality is not working 
correctly now.. 
It is better to fix it so that other users won`t suffer from it :)

Please archive (in zip/tar/whatever) the previous NetBeans userdir folder (likely ~/.netbeans/6.1) and attach it to 
this issue. If it is too big in size (>1Mb) please send it to me (dlipin at netbeans dot org) and Vince (vkraemer at 
netbeans dot org) directly.

Thanks in advance,
Dmitry

PS. Maybe this issue is related to Issue 126415, maybe not...
Comment 18 alcmontejo 2008-08-18 12:43:22 UTC
hi can you specify what particular folder/files  inside the ~.netbeans\6.1 coz im getting 287 mb. please see the
attachement I took a snapshot.

Thanks,
Allen Montejo
Comment 19 alcmontejo 2008-08-18 12:44:10 UTC
Created attachment 67692 [details]
netbeans profile 61
Comment 20 dlipin 2008-08-18 13:17:23 UTC
I guess only .netbeans/6.1/config directory is important in this case.
Comment 21 Nitya Doraisamy 2008-08-18 19:05:19 UTC
> yes so that I my web project configuration will not broke and also my customized library,
>oh i see, that might be the cause, maybe I remove the server from that setting and it was carry 
>to the current. am my right? or else?

I think the user was saying that he might have removed GF V2 UR2 in the previous setting and because he imported the
previous NetBeans settings, the current one does not have GF v2 UR2 too.

Allen, Is my understanding correct? If so, there might not be a bug as the previous settings are being imported.

Allen could you test the installation without importing the previous NB setting to see if GFV2 UR2 is added to the
server's list.

Thanks
Nitya 
Comment 22 alcmontejo 2008-08-19 00:05:57 UTC
Created attachment 67752 [details]
folder config on ~\.netbeans\6.1
Comment 23 alcmontejo 2008-08-19 00:26:46 UTC
hi Nitya,

Yes that was I wanted to mean, But I cannot confirm to you that I remove the GF V2 in my previous setting, just my doubt.

Anyway If I install new build today without importing setting from my previous IDE, if im going to open all my web project in new build does  all my 
cuztomize library and used plugin will then get imported?

Thanks,
Allen Montejo


Comment 24 dlipin 2008-08-19 13:33:19 UTC
Allen,

Do you still have GlassFish V2 installed at C:\Program Files\glassfish-v2-b58g ?

Dmitry
Comment 25 alcmontejo 2008-08-19 13:44:59 UTC
hi!

none, i dont have glassfish-v2-b58g installed.

Thanks,
Allen Montejo
Comment 26 Nitya Doraisamy 2008-08-22 02:53:27 UTC
I think this issue is the same as Issue 126415.
The .nbattrs in ..\config\J2EE\InstalledServers points to C:\Program Files\glassfish-v2-b58g\domains

But the latest install of GF is in C:\Program Files\glassfish-v2ur2 and this mismatch is resulting in server not being
present in the Servers list on importing the previous settings.

>Anyway If I install new build today without importing setting from my previous IDE, if im going to open all my web
>project in new build does  all my cuztomize library and used plugin will then get imported?

Allen
If you don't import the settings, any customizations that you setup which are not part of the project will have to be
redone. 
Comment 27 alcmontejo 2008-08-22 02:58:32 UTC
okay thank you very much! I will try to install new build and try not to import the old setting. I hope my library now will not broke :0)

Thanks,
Allen Montejo
Comment 28 dlipin 2008-08-22 09:23:05 UTC
Nytya,

> I think this issue is the same as Issue 126415.
> The .nbattrs in ..\config\J2EE\InstalledServers points to C:\Program Files\glassfish-v2-b58g\domains

> But the latest install of GF is in C:\Program Files\glassfish-v2ur2 and this mismatch is resulting in server not being
> present in the Servers list on importing the previous settings.

I also guess that it is the same as 126415, at least, the core of the issue is the same. In that issue the scenario was 
reinstalling of glassfish to different location - and I agree, that it is the corner case, but in this case user 
installs, first one version of NetBeans with GlassFish, then unistall and install the other one.
It means that the autoregistration functionality (using system property com.sun.aas.installRoot) is not working 
correctly: if some V2 server is already registered (entry exist in the .nbattrs - even if it is imported) then the new 
one can`t integrated using the system property. 

I also guess that even if GlassFish (glassfish-v2-b58g) exist (even if it is added via importing settings) and new one 
is passed via the sysprop then it will not be registered. 

The simple scenario:
1) Install 6.0 with glassfish-v2-b58g
2) Start IDE, make sure GlassFish is in Services (or Runtimes) tab
3) Install 6.1 with glassfish-v2ur2
4) Start IDE, import settings from 6.0
Most likely V2 UR2 will not be registered though it should be.
This is quite a common use case and at least for me it does not look like P4, but I am comfortable with P3.
Comment 29 alcmontejo 2008-08-22 10:57:44 UTC
hi!

Okay thanks, set it to P3. What should I do? closed this and create an issue for autoregistration functionality (using system property 
com.sun.aas.installRoot) ?

Please advise.

Thanks and more power,
Allen Montejo



Comment 30 Nitya Doraisamy 2008-08-22 18:28:46 UTC
In this case the auto registration functionality is broken and is more than a edge case. Will fix. 
Marking Issue 126415 as duplicate of this
Comment 31 Nitya Doraisamy 2008-08-22 18:30:06 UTC
*** Issue 126415 has been marked as a duplicate of this issue. ***
Comment 32 Quality Engineering 2008-09-30 05:58:54 UTC
Integrated into 'main-golden', will be available in build *200809300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/487276810fcb
User: nityad@netbeans.org
Log: #144222 : Fix for autoregistration functionality (use system property com.sun.aas.installRoot) while importing settings
Comment 33 Nitya Doraisamy 2008-09-30 17:22:18 UTC
Fixed
Comment 34 alcmontejo 2008-10-04 10:03:22 UTC
verified fixed. thanks very much
Comment 35 John Baker 2008-10-10 20:07:47 UTC
*** Issue 147870 has been marked as a duplicate of this issue. ***