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 54840

Summary: App server is sometimes restarted
Product: serverplugins Reporter: Petr Blaha <blaha>
Component: InfrastructureAssignee: Petr Hejl <phejl>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Petr Blaha 2005-02-10 17:35:27 UTC
[Build 20050209]
I was wotking with App server and suddenly the
server was restarted.
See output window:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
compile:
compile-jsps:
library-inclusion-in-archive:
library-inclusion-in-manifest:
Building jar:
/home.local/blaha/testing/WebApplication2/dist/WebApplication2.war
do-dist:
dist:
run-deploy:
Stopping server Sun Java System Application Server 8
/home.local/blaha/SUNWappserver/bin/asadmin
stop-domain domain1 

Starting server Sun Java System Application Server 8
/home.local/blaha/SUNWappserver/bin/asadmin
start-domain domain1 

Distributing
/home.local/blaha/testing/WebApplication2/dist/WebApplication2.war
to [localhost:4848_server]
deployment started : 0%
Deployment of application WebApplication2
completed successfully
Enable of WebApplication2in target server
completed successfully
All operations completed successfully
run-display-browser:
Browsing:
http://localhost.czech.sun.com:8080/WebApplication2/
run:
BUILD SUCCESSFUL (total time: 49 seconds)
Comment 1 _ ludo 2005-02-10 18:34:44 UTC
This might be a feature, not a bug...
Sometimes, if the server config is changed (new resources regsitered,
class path changed, etc.. the server has a propery called
restartNeeded (see the prop window of a running AS server to see its
state.
If the IDE detects this value to true, then j2eeserver module restarts
the server.

So what did you do before this restart?
Comment 2 Petr Blaha 2005-02-11 09:27:35 UTC
I removed JMS resources. I understand, but user should be notified of
server restart reason.
Comment 3 _ ludo 2005-02-11 18:22:07 UTC
notification should be done at the j2eeserver level.
Comment 4 Sherold Dev 2005-02-18 10:16:12 UTC
Setting the TM to 4.1. 
Comment 5 pcmreddy 2005-08-17 05:34:46 UTC
This issue could happen in the following cases too.
This also happens on WinXP, Solaris and JDS Linux

  Case 1 :
  If a web application contains any server resource (a data source).
 Every deployment of web module appserver is restarted. Even there is nothing is
changed in application.

 Case 2 :
    If a web application contains Web services (which are getting compiled for
each deployment and generating new classes). Appserver may think this are new
classes in web module and restarts. 

Comment 6 pcmreddy 2005-08-17 05:51:31 UTC
See also Appserver bug : 6312063
Comment 7 Sherold Dev 2005-10-21 12:46:56 UTC
TM -> 5.0
Comment 8 Sherold Dev 2006-03-06 16:44:16 UTC
*** Issue 72444 has been marked as a duplicate of this issue. ***
Comment 9 Petr Blaha 2006-03-13 13:50:57 UTC
TM 5.0 -> TBD
Comment 10 Sherold Dev 2006-05-31 14:12:12 UTC
changing to enhancement since it behaves exactly as designed. adding some kind
of notification is an enhancement
Comment 11 Vince Kraemer 2009-02-13 20:15:22 UTC
producing a message can be handled at the j2eeserver level.

producing a good message will probably require an API change in org.netbeans.modules.j2ee.deployment.plugins.spi.StartServer

sending back to j2eeserver
Comment 12 Petr Hejl 2015-09-30 10:57:25 UTC
The app server is not supported anymore.