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 72444 - Have to restart NetBeans to redeploy web application
Summary: Have to restart NetBeans to redeploy web application
Status: RESOLVED DUPLICATE of bug 54840
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 04:07 UTC by paulhuang
Modified: 2006-03-06 16:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
build-impl.xml (31.35 KB, text/xml)
2006-02-09 04:08 UTC, paulhuang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paulhuang 2006-02-09 04:07:26 UTC
I am developing a web application using NetBeans 5.0 and try to deploy it onto a
remote App Server (Sun Java Application Server 8.1 on a Sparc machine). 

I just found:
1. I can deploy for the first. 
2. I can never redeploy the application in the same instance of NetBeans.
Whennever I made some changes, rebuild the application and try to redeploy it by
pressing the menu "run->run main project", I always get the following error message:

E:\netbeans_project_repo\DBTest\nbproject\build-impl.xml:419: Deployment error:
Server Sun Java System Application Server requires restarting, but it is not
supported. Please, restart the server manually.
See the server log for details.
BUILD FAILED (total time: 0 seconds)

I will pu the xml file as a attachement. 

3. If I restart the netbeans IDE, I can redeploy the application again. 

What's run with this?
Comment 1 paulhuang 2006-02-09 04:08:37 UTC
Created attachment 28805 [details]
build-impl.xml
Comment 2 Petr Blaha 2006-02-09 04:33:55 UTC
I have seen similar issue wean the deployed module includes some issues.
Please, try to run verifier for your project (select project node in project
tab, right-click and invoke Verify). Then, resolve all issues that were reported
by verifier. 
Then restart remote server and deploy module again.
I'm assigning to right component.
Comment 3 Petr Blaha 2006-02-09 04:35:44 UTC
My fault, the issue is relkated to AS 8.1
Comment 4 Petr Blaha 2006-02-09 04:38:00 UTC
BTW, I don't think this is a issue in NetBeans. The message says that server
should be restarted. Did you restart the server?
Comment 5 _ ludo 2006-02-09 04:49:29 UTC
nb plugin queries the remote server to see if a restart is needed.
For some reason, your app at deploy time triggers this flag on the remote
server...or this flag is on...(it can be on when admin changes are done like JVM
options or classpath setting that require a restart)
Do you you if you have server resources in this project?
Can you restart the remote server once, and try again the deployment?
Comment 6 paulhuang 2006-02-09 05:31:51 UTC
I will try to see if this works. However, I don't think this is the right answer
as it wouldn't explain why the application could be redeployed once the Netbeans
IDE gets restared (without any restart of the remote app server).
Comment 7 paulhuang 2006-02-09 06:09:12 UTC
Restart the remote app server did help. The application is redeployable in this
case. However, still wondering why restart NetBeans IDE will also solve this
problem. 
Comment 8 _ ludo 2006-02-09 15:00:02 UTC
Becasue Nb does not do this test the first time.
So the bug is on j2eeserver that needs to popup a nice dialog when:
1/ the IDE cannot start the server (all remote servers)
2/ but this server says it needs to be restarted...
I would still complete the deployment in this case, as long as the user is
correctly warned.
Not a p1 since the solution is to restart the remote server.
Comment 9 Sherold Dev 2006-03-06 16:44:17 UTC
> Becasue Nb does not do this test the first time.

Actually, NB does this test even the first time after the restart. Restarting
only the IDE should not help in this case, are you sure the server was not
restarted?

Currently the IDE behaves consistently, if the server claims that restart is
needed, an error message is shown and deployment fails. Moving down to p3.

Marking this issue as a duplicate...

*** This issue has been marked as a duplicate of 54840 ***