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 172551 - Netbeans stops running Glassfish v3 server on quit
Summary: Netbeans stops running Glassfish v3 server on quit
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 10:52 UTC by ralphrmartin
Modified: 2009-09-21 15:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Boot time launcher to go in /Library/LaunchDaemons (2.99 KB, text/plain)
2009-09-18 15:51 UTC, ralphrmartin
Details
Simple Web App to reproduce problem (19.22 KB, application/x-compressed)
2009-09-18 15:51 UTC, ralphrmartin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ralphrmartin 2009-09-18 10:52:34 UTC
I have an already running Glasfish v3 server (started at boot time).

I then start Netbeans, and run a webapp from Netbeans.

That works OK (although the log looks like Netbeans tries to start the server even though it is already running?)

Howeevr, the real issue is that when I quit Netbeans, this stops the Glassfish v3 server - after Netbeans exits, the server is no longer running.

I am using netbeans 6.7.1 and the -J-Dorg.glassfish.v3ee6.installRoot=<INSTALL-ROOT> flag.

(Just starting and stopping Netbeans does not stop the server - you have to run a webapp for that to happen).
Comment 1 Vince Kraemer 2009-09-18 15:24:24 UTC
Do you ever stop and restart the server in a single IDE session?

If you do, the IDE assumes that it 'has control' of the server.... 

Did you deploy an app that uses a database -- the IDE deploys the driver and that can trigger a restart... since the
jars are added to the classpath, which is not a dynamic property for the server 

I just checked a recent 6.8 build with GF v3...

I started the server outside the IDE.
I opened the IDE
registered the server
created a web app that targets the server
used run on the app
exited the IDE

The server was still running...

Closing as WFM.

Please reopen with detailed step-by-step description on how to reproduce this issue.
Comment 2 ralphrmartin 2009-09-18 15:49:49 UTC
No, I do not explicitly start or stop the server.

As I said, the server is already running. Surely, before rying to start the server, netbeans should check if it is already running, and if so, it should NOT try to start or stop it.

My app does not use a database. This happens with a very simple Hello World Web App.

This is using Netbeans 6.7.1.

The server (from   glassfish-v3-b64.zip ) is started using  the attached LaunchDaemon file, at boot time.

An admin password is set on the server

Fire up Netbeans

Register the server

Open the attached web app

Hit the Run button in Netbeans

Quit Netbeans

Server is also taken down

Attachements following:
Script to go in /Library/LaunchDaemons
WebApp, zipped up
Comment 3 ralphrmartin 2009-09-18 15:51:00 UTC
Created attachment 87921 [details]
Boot time launcher to go in /Library/LaunchDaemons
Comment 4 ralphrmartin 2009-09-18 15:51:57 UTC
Created attachment 87922 [details]
Simple Web App to reproduce problem
Comment 5 ralphrmartin 2009-09-18 15:53:22 UTC
Reopened (see above attachments and instructions for reproducing issue)
Comment 6 Vince Kraemer 2009-09-18 16:20:10 UTC
thanks for the additional info. (that is usually where the devil is...)  I can reproduce the issue now.


Comment 7 Quality Engineering 2009-09-21 09:53:52 UTC
Integrated into 'main-golden', will be available in build *200909210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b532935cfc3a
User: vince kraemer <vkraemer@netbeans.org>
Log: #172551: Netbeans cries, "Avast!", at servers that it did not start when it goes ashore, if they be requiring authentication...
Comment 8 Vince Kraemer 2009-09-21 15:00:36 UTC
in nightlies
Comment 9 ralphrmartin 2009-09-21 15:10:03 UTC
I confirm this fix works for me. Thanks.