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 223184 - Glassfish started failed... anytime after deploying WAR built by NetBeans 7.3 beta
Summary: Glassfish started failed... anytime after deploying WAR built by NetBeans 7.3...
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: PC All
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-03 15:03 UTC by smithh032772
Modified: 2013-03-26 16:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (103.51 KB, text/plain)
2012-12-03 15:03 UTC, smithh032772
Details
FileNotFoundException for my 7.2 settings (19.04 KB, image/jpeg)
2012-12-11 05:13 UTC, smithh032772
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smithh032772 2012-12-03 15:03:49 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Windows Server 2008 version 6.0 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02
Glassfish 3.1.2.2 (build 5)

Everytime 'after' I deploy a WAR 'built' by NetBeans 7.3 beta, I get the Glassfish started failed. This is a showstopper for me. I don't have this issue with NetBeans 7.2 and earlier releases. 

I do not have a test case. I only have my app, which is huge.

WORKAROUND: undeploy WAR/application in Glassfish 'before' shutdown Glassfish

I usually reproduce this issue via the following steps:

ASSUMPTION: no WAR/application is deployed to Glassfish prior to step # 1 below

1. In NetBeans, Clean and Build (my application/project)
2. In NetBeans, start Glassfish (from Services pane)
3. In NetBeans, Deploy (my application), OR in Glassfish Admin Console, deploy Application (WAR file)
4. Use/test WAR/application
5. Shutdown Glassfish via NetBeans (I don't 'ever' shutdown Glassfish via Glassfish Admin Console)
6. In NetBeans, start Glassfish (from Services pane)
Comment 1 smithh032772 2012-12-03 15:03:53 UTC
Created attachment 128785 [details]
IDE log
Comment 2 smithh032772 2012-12-06 15:09:39 UTC
Please note that when I installed Netbeans 7.3 beta, I already had Glassfish 3.1.2.2 installed and NetBeans 7.3 beta install software 'recognized' and 'informed' me that Glassfish 3.1.2.2 is 'already installed', so the install software did 'not' have to re-install Glassfish 3.1.2.2 (and I'm glad it did 'not' try to reinstall Glassfish 3.1.2.2).

So, I wanted to add this comment so you would know that my environment includes NetBeans 7.3 beta with a pre-installed copy of glassfish 3.1.2.2.

Maybe this bug/defect is introduced, because install software did not push some necessary file/script/component which is needed/executed for netbeans-glassfish interface.
Comment 3 TomasKraus 2012-12-10 12:27:07 UTC
We know about similar issues in Beta release.
Please try this with latest build from http://bits.netbeans.org/dev/nightly/latest/
and let me know if it works fine for you.
Comment 4 smithh032772 2012-12-11 05:13:52 UTC
Created attachment 129184 [details]
FileNotFoundException for my 7.2 settings

I downloaded the nightly build as advised, installed the nightly build of NetBeans, started NetBeans, and got the FileNotFoundException when Netbeans was trying to read the file for my 7.2 settings.

I am not going to use this build, since it failed to import my 7.2 settings.
Comment 5 TomasKraus 2012-12-11 12:39:13 UTC
Did you see whole stack trace? Unfortunately I can't do much without verifying this with last build.
There should be some messages log file in netbeans settings directory somewhere in your home directory and it should contain stack trace for this FileNotFoundException.
I would like to fix both those issues before 7.3 release.
Comment 6 smithh032772 2012-12-11 13:12:06 UTC
The screen capture I attached showed the dialog that was displayed to me. Windows dialogs don't usually show stacktrace's, they just show the main 'caused by' exception message. So, the screen capture is all I have to give you unless there is some type of install or 'first-time-run' output file that might contain the entire exception.

I would assume that you can/should do a 'diff' on the first-time-run of the Netbeans, between nightly-build version and NetBeans 7.2 version.

NetBeans 7.1.2 and 7.2 install and first-time-run procedure works as designed and installs NetBeans perfectly on my Windows Server 2008 and Windows Server 2003 server/computers.
Comment 7 Petr Hejl 2012-12-11 13:22:34 UTC
http://wiki.netbeans.org/FaqLogMessagesFile
Comment 8 TomasKraus 2013-03-26 10:47:24 UTC
This bug was already fixed long time ago. There was a problem with server status checking code which caused GlassFish process to be considered broken and to be killed.

Please download NetBeans 7.3 release.
Comment 9 TomasKraus 2013-03-26 16:04:41 UTC
From: "Howard Smith Jr." <smithh032772@hotmail.com>
To: "TomasKraus@netbeans.org" <tomaskraus@netbeans.org>
CC: "Howard Smith Jr." <smithh032772@hotmail.com>
Subject: RE: [Bug 223184] Glassfish started failed... anytime after
         deploying WAR built by NetBeans 7.3 beta
Date: Tue, 26 Mar 2013 08:57:21 -0400

I would love to be able to add comments in bugzilla, but this is my experience:

1. click on the URL provided in the email below
2. bugzilla is opened in my browser (Google Chrome)
3. it says that i need to 'log in' to add comment
4. I click 'log in', it redirects me to a page (my profile) and says that i am 'already logged in'
5. I click on bugzilla or copy/paste URL (in email below) to return to the issue in bugzilla, and then it puts me back at #3 above
6. steps 3 thru 5 are repeated, infinitely... it never lets me add a comment, that is why i am replying your email here.

FYI, I have been using Netbeans 7.3 ever since it was released, and it works great! I am 100% satisfied with netBeans 7.3 as I have been with all previous releases since I started using NetBeans 7.0. :)

Thanks,
Howard

P.S. please add these comments to the bug/issue in bugzilla, since i obviously have not been able to login to add comment for months now. i am 'only' able to open new issues from netbeans. netbeans works but 'add comment' does not!!!!