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 73642 - GlassFish cannot be started from IDE
Summary: GlassFish cannot be started from IDE
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-16 12:14 UTC by Milan Kuchtiak
Modified: 2006-06-04 23:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message Dialog (27.42 KB, image/jpeg)
2006-03-17 09:14 UTC, Milan Kuchtiak
Details
Whole server.log (403.39 KB, text/plain)
2006-03-17 17:48 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2006-03-16 12:14:27 UTC
I use the GlassFish build 41 and IDE Build 060316).
Empty userdir.
Comment 1 Sherold Dev 2006-03-16 13:38:06 UTC
-> sunappserv
Comment 2 Vince Kraemer 2006-03-16 20:25:36 UTC
I just did a release55 build on Ubuntu 5.10.  I downloaded the Mar 16 nightly of
GF (the build hasn't been promoted yet).

Installed GF

started ide with new userdir

registered domain1

started the instance. Stopped the instance.

created a web app.  executed it (which did another start stop...)

Do you have more info.... server log, ide log,... something?
Comment 3 Milan Kuchtiak 2006-03-17 09:13:04 UTC
I am sorry for harassing you with this bug, but it's really frustrating.
The behaviour is following :
When I start GlassFish from IDE - I see only the progress bar at the bottom
saying server is starting. This lasts for about 5 munutes - at least !
Finally the message dialog appears. See the attachment. 
Nothing is written to Server.log !

Then when I start GlassFish using command line :
asadmin start-domain domain1 
- the IDE catches somehow on, and suddenly I can extend the server node in
Runtime Tab.
Comment 4 Milan Kuchtiak 2006-03-17 09:14:20 UTC
Created attachment 29280 [details]
Message Dialog
Comment 5 Milan Kuchtiak 2006-03-17 09:16:14 UTC
I use Linux-Fedora [2.6.14-1.1656_FC4].
Comment 6 Vince Kraemer 2006-03-17 15:57:42 UTC
has work-around.
Comment 7 _ ludo 2006-03-17 16:52:54 UTC
Other folkes reported this behaviour on the nbj2ee mailing list recently...
Without really known cause yet...
To me, it seems to be related to some internet or network settings on these
systems...

Milan: did this happen only recently? What else changed on this system regarding
configuration, linux updates, installed software,etc...?
Comment 8 _ ludo 2006-03-17 16:57:56 UTC
Also, you say 'nothing in the server log'...
Is it really 'nothing', or something normal  just the fact that the server is
really started?  If it's nothing at all, then the issue is different...

Can you attach it as well and indicate the times when you try to start from the
IDE...
I need it anyway, to check one thing...
Comment 9 Milan Kuchtiak 2006-03-17 17:31:12 UTC
The work-around is also don't use the IDE at all.
The bug is rather serious. OK, let's say it's P2.
There is really nothing in Server.log.

I tested the GlassFish start again:
7 minutes of meditation -> then message window opens (I already attached)

I already reinstalled GlassFish (#41), cleaned IDE user dir, set the master
password again - without success.
Comment 10 Vince Kraemer 2006-03-17 17:36:35 UTC
Setting the master password is a non-trivial bit of info....  That is outside
the scope of what most folks consider to be "install GlassFish".  That will make
this a lot easier to diagnose...  Thanks.
Comment 11 _ ludo 2006-03-17 17:38:39 UTC
Please, clarfiy what you did exaclty with the master password.
This might be the issue.
Can you give all the commands you typed?
We need to understand this and make you successful...
Comment 12 _ ludo 2006-03-17 17:40:21 UTC
Also, in a previous post, you said that asadmin start-domain domain1 was working,

but after, you said there is nothing in the server.log.

I am not sure how this can be possible. If CLI works, then something must be in
the log for this successful start
Comment 13 Milan Kuchtiak 2006-03-17 17:48:43 UTC
Created attachment 29297 [details]
Whole server.log
Comment 14 _ ludo 2006-03-17 17:53:27 UTC
Thanks. Now, for each start I see in this log, can you tell me which ones was
from the IDE, and which ones from CLI?

The IDE might timeout to detect the start, so I need to know if the server
really started, even if the IDE did not detect this.
Comment 15 Milan Kuchtiak 2006-03-17 17:55:10 UTC
Of cource, start from command line is succesfull.
But before that there is no response.
Comment 16 _ ludo 2006-03-17 19:36:01 UTC
Url:
http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/StartSunServer.java?r1=1.4.4.6.2.2&r2=1.4.4.6.2.3

seems to fix the issue: do not use native launcher for glassfish at all, for all
the platforms.