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 66578 - deploy to remote server doesn't work
Summary: deploy to remote server doesn't work
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 5.x
Hardware: All Solaris
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-10-12 10:32 UTC by Jan Horvath
Modified: 2005-12-15 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ServerInstance changes (649 bytes, text/plain)
2005-10-19 20:24 UTC, Nitya Doraisamy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Horvath 2005-10-12 10:32:34 UTC
netbeans build 200510111800
appserver version 8.1_02 (build b12-p04)

-have an ejb module
-start remote server
-in project propertiest select remote server for deploy
-invoke deploy project
-error message in output window: 
Starting of this deployment manager hobbes is not supported
Failed to start server hobbes
Deployment error: Failed to start server hobbes.  See the server log file for details.

-server node in project tab indicates that server is stopped despite server is running
Comment 1 _ ludo 2005-10-12 15:55:39 UTC
Either regression on plugin side, or j2eeserver module.

To be sure, you confirm the server is really running? Try to use the admin console 
and login to it.
And if you do a refresh on the server node, you do not see the gree arrow?
Thanks.
Comment 2 Jan Horvath 2005-10-12 16:21:43 UTC
I've teested this case on two machines. I can connect to admin console, but after refresh server node 
doesn't have green arrow
Comment 3 Nitya Doraisamy 2005-10-19 20:24:03 UTC
Created attachment 26149 [details]
ServerInstance changes
Comment 4 Nitya Doraisamy 2005-10-19 20:35:58 UTC
Green arrow does show up on refresh when connected to remote server. But I've 
noticed that sometimes, you need to refresh twice. 

Failure message on attempting to deploy to remote server appears when either 
the server is not running or if it is running, but has restart required flag 
enabled.

j2eeserver module (org.netbeans.modules.j2ee.deployment.impl.Server Instance) 
is aware that the server is remote and cannot be restarted and provides 
correct message that,
"Starting of this deployment manager hobbes is not supported"
But this message is followed with standard deploy failure message.

 j2eeserver code needs to handle scenario better. It needs to either,
1, Continue with deployment without restarting and inform user that remote 
server needs to be restarted 
2, Or provide a better message as to why deployment was not performed. Current 
message gives the impression that deployment was attempted and failed.

Attached diff for simple fix for option 1. 
Comment 5 Sherold Dev 2005-11-17 17:36:30 UTC
F.

Deployment will now fail with a convenient message. Annoying multiple error
dialogs removed.

Checking in ant/antsrc/org/netbeans/modules/j2ee/ant/Bundle.properties;
/cvs/j2eeserver/ant/antsrc/org/netbeans/modules/j2ee/ant/Bundle.properties,v 
<--  Bundle.properties
new revision: 1.3; previous revision: 1.2
done
Checking in ant/antsrc/org/netbeans/modules/j2ee/ant/StartProfiledServer.java;
/cvs/j2eeserver/ant/antsrc/org/netbeans/modules/j2ee/ant/StartProfiledServer.java,v
 <--  StartProfiledServer.java
new revision: 1.3; previous revision: 1.2
done
Checking in ant/src/org/netbeans/modules/j2ee/ant/Bundle.properties;
/cvs/j2eeserver/ant/src/org/netbeans/modules/j2ee/ant/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/j2ee/deployment/devmodules/api/Bundle.properties;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.6; previous revision: 1.5
done
Checking in src/org/netbeans/modules/j2ee/deployment/devmodules/api/Deployment.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/Deployment.java,v
 <--  Deployment.java
new revision: 1.22; previous revision: 1.21
done
Checking in src/org/netbeans/modules/j2ee/deployment/impl/Bundle.properties;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.34; previous revision: 1.33
done
RCS file:
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerException.java,v
done
Checking in src/org/netbeans/modules/j2ee/deployment/impl/ServerException.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerException.java,v
 <--  ServerException.java
initial revision: 1.1
done
Checking in src/org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java,v
 <--  ServerInstance.java
new revision: 1.68; previous revision: 1.67
done
Checking in src/org/netbeans/modules/j2ee/deployment/impl/TargetServer.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/TargetServer.java,v
 <--  TargetServer.java
new revision: 1.44; previous revision: 1.43
done
Checking in src/org/netbeans/modules/j2ee/deployment/impl/ui/ProgressUI.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/ProgressUI.java,v
 <--  ProgressUI.java
new revision: 1.17; previous revision: 1.16
done
Checking in
src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/DebugAction.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/DebugAction.java,v
 <--  DebugAction.java
new revision: 1.3; previous revision: 1.2
done
Checking in
src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/ProfileAction.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/ProfileAction.java,v
 <--  ProfileAction.java
new revision: 1.3; previous revision: 1.2
done
Checking in
src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/RestartAction.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/RestartAction.java,v
 <--  RestartAction.java
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/StartAction.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/StartAction.java,v
 <--  StartAction.java
new revision: 1.4; previous revision: 1.3
done
Checking in
src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/StopAction.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/actions/StopAction.java,v
 <--  StopAction.java
new revision: 1.5; previous revision: 1.4
done
Comment 6 Jan Horvath 2005-12-15 10:10:09 UTC
v