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 181820 - Netbeans cant start the GF v3 server after update
Summary: Netbeans cant start the GF v3 server after update
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-11 03:12 UTC by checohinojosa
Modified: 2011-11-16 16:39 UTC (History)
1 user (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 checohinojosa 2010-03-11 03:12:37 UTC
Hello Netbeans Team,

Yesterday I downloaded Netbeans 6.8 and installed it on the Companies pc where i'm about to work. I updated it (with the 15 new found updates as today), and after I restarted NB i couldn't launch GF3. If I try to start it directly only the green icon appears for a while(the play icon over the fish) but no output from GF is invoked only the derby db is started (This because it's configured in the properties file). There is nothing on the server.log. I proved this on the GF server installed and on a new GF v3 server. One weird part is that on GF v2.1.1 (the one included with SDK) I could invoke it but the GF v3 I couldn't. If i try to deploy or run a web app then nb compiles it and tries to start the server, here is the only error I found that said "Glassfish server v3 can't start, the port is occupied" which it wasn't, I could start GF nicely from the cmd even with the debug mode option as well. After starting GF manually i could deploy applications on the server but i could'nt shut it down, restart it or start it in debug mode.  I erased the .nbi and .netbeans user directories (with the IDE off) and started it and the problem was still there, the path to the servers was created ok, but somehow I just could not invoke them. The ports where free and I shutdown the firewall in case it was blocking the NB IDE. Here is where it get's weirder I uninstall NB  (delete all remaining directories after the uninstall) install it again normally with no upgrades and NB still can't launch GF v3. I uninstall it and install it again in a different path (instead of C:\program files\NB in C:\NB ) These time i could invoke the servers, I was really curious, (I can only think that something weird happened in the registry, or the NB lost some rights to invoke it but it could deploy), so I updated NB again and the same happened. Made the same procedure, uninstall it, delete old user files, install it (this time in C:\NB) and i could not start GF V3. Now well... I just installed GF in a third location and I can start GF v3. I don't believe I'm going to make an update soon. :(

I hope my input could help you.

Best regards,

Sergio

P.S. please let me know it this is a bug or how could I fix it so i can have my NB updated :D
Comment 1 Vince Kraemer 2010-03-11 13:44:50 UTC
I have a couple questions that will help us reproduce your issue.

1. where did NB get installed?

2. where did gf v3/sges-v3 get installed?

3. where is java installed?

4. were you able to start gf v3 before the update was started?

5. was v3 running when you did the update?
Comment 2 Vince Kraemer 2010-03-11 14:00:22 UTC
please attach the server log and ide log files
Comment 3 Vince Kraemer 2010-03-11 14:02:20 UTC
please clarify... did you update NB, GF or both?
Comment 4 Vince Kraemer 2010-03-11 14:09:43 UTC
I just did the following on Win Vista.  I do not have XP.

1. downloaded the 6.8 bits
2. installed 6.8 (into c:\Program Files\NetBeans 6.8) with sges-v3 (c:\Program Files\sges-v3)
3. started NB 6.8
4. started the default instance of v3.
5. stopped the default instance of v3.
6. updated the IDE (which restarted the IDE)
7. started the default instance of v3.

I ran into no issues.

What are you doing that is different from the steps that I have outlined above?
Comment 5 checohinojosa 2010-03-12 04:46:43 UTC
Hi Vince, I'm copying your question so I can answer them in an orderly fashion:

>I have a couple questions that will help us reproduce your issue.
>1. where did NB get installed?

I Installed it firs in C:/Program Files/Netbeans 6.8 (the default location) then the second time in C:/Program Files (both times the bug ocurred after the update)

>2. where did gf v3/sges-v3 get installed?

In the default location at first C:/Program Files/sges-v3, then the second time in C:/sges-v3

> 3. where is java installed?
The first time I had the SDK and it was installed in C:/Program Files/Java/SDK/ . THe first time I could test even with GFv2.1 included in the SDK, and it could work, but GFv3 didn't (that was one weird thing)

> 4. were you able to start gf v3 before the update was started?
Yes, I was able to start it. after the update I couldn't. I could only deploy and redeploy but GF needed to be started manually. I couldn't shut it down either from Nbeans, only from the cmd with asadmin. 
I checked the path from the files in the user directories to GFv3 and it seemed ok, otherwise i couldn't be able to deploy the apps. Either way I deleted the .nbi and .netbeans directories, and started Netbeans again. Still no success. Uninstall Netbeans and reinstall it on the same location (Before I installed it I removed the user directories and rebooted it). And still nothing. I even downloaded another instance of GFv3 installed at C:/glassfishv3 and the same problem arises. 

> 5. was v3 running when you did the update?
The first time yes,  that's why I thought it was all my fault. But the second time I didn't. By the second time I mean when I installed NB in a different location in C:/Netbeans 6.8 I could start GF without any problems, So i was courios and made the update again, and uppsala.. the same problem appeared.

------- Comment #2 From Vince Kraemer 2010-03-11 14:00:22 (-) [reply] -------

> please attach the server log and ide log files

I would have but since I deleted everything, I didn't think this would come so far, it's my first time filing a bug. Now I have Netbeans installed in a different location (third different location) so it could work, that's the only thing I found that makes it work again (of course with no updates of nb).

------- Comment #3 From Vince Kraemer 2010-03-11 14:02:20 (-) [reply] -------

> please clarify... did you update NB, GF or both?
Only NB. The problem appears after the update of NB. The first time the problem appeared I didn't have GF updated, so I did, installed all possible plugins and nothing. Now I have GF updated, but mainly what I downloaded of GF was the documentation.

------- Comment #4 From Vince Kraemer 2010-03-11 14:09:43 (-) [reply] -------

I just did the following on Win Vista.  I do not have XP.

1. downloaded the 6.8 bits
2. installed 6.8 (into c:\Program Files\NetBeans 6.8) with sges-v3 (c:\Program
Files\sges-v3)
3. started NB 6.8
4. started the default instance of v3.
5. stopped the default instance of v3.
6. updated the IDE (which restarted the IDE)
7. started the default instance of v3.

I ran into no issues.

What are you doing that is different from the steps that I have outlined above?
---
I did exactly the same, but in XP. The first time the problem appeared I was updating NB and I had GF running, I was actually testing some sample applications of JSF that comes with the JEE6 tutorial. So I thought I shouldn't have been doing it while downloading the updates (which I don't think it has anything to do, are different processes and the update of NB starts after the restart of NB where the plugins and modules are being installed) But I dit restart Netbeans from the Option that NB gave me (I suppouse NB should have stoped GF gracefuly)

The second time (when NB was working again after being installed in a different location) I did EXACTLY what you did.

Now my configuration is this:

C:\Program Files\NBeans 6.8 (installed with no GF since I downloaded already one and I have it updated and with documentation)
C:\glassfishv3
C:\Program Files\Java\jdk1.6.0_18

Now I have only the JDK, I uninstalled the SDK, which didn't make any difference. Now everything is working ok (i have not updated NB)

About the log files, when I tried to start GF from NB nothing was written in the server.log since it was not started. I only could see the in the IDE output when i tried to deploy directly and GF was off, "Glassfish can't start, the port is occupied". 
I can bet if i update NB the problem will arise. Should I update it and paste the log files? How can I help you? I still have some time before I start programming in my project.


BTW: Unofficially, if i may ask you an IT question, It would be great if you could point me in the right direction. I have the Task to integrate a big Struts 1 Application into the JSF 2.0 Framework. Do you know where can i find info on how to migrate or integrate the Frameworks?
Thanks in advance!

Greetings from Stuttgart,

Sergio
Comment 6 Vince Kraemer 2010-03-12 13:32:24 UTC
I will see if some other folks around here can reproduce this issue. I have not been able to reproduce it, though.

I really need to have the log files attached to this issue (server and netbeans).

The data in the file .netbeans\6.8\config\GlassFishEE6\Instances\.nbattrs would also be very valuable.

Without the log files and config data I will have to close this issue as worksforme on Monday.
Comment 7 Vince Kraemer 2010-03-15 14:51:28 UTC
still need the log files.

I will reopen this issue once there is additional info added to this issue to guide my efforts.