NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
hakoni
Joined: 17 Feb 2009 Posts: 1
|
Posted: Tue Feb 17, 2009 3:39 pm Post subject: auto(un)deploy problems |
|
|
Hi gentlemen,
I have an issue with netbeans 6.5 / 7.0 and glassfish web applications that I hope someone can help me with.
Setup: a test glassfish app-server, and a production glassfish app-server, registered in netbeans.
a project deploys/undeploys to the server specified in the "Project->Run->Server" , so to have a test server/production server requires to change that property.
When developing, sometimes it is required to perform a clean/build, to make sure all dependencies are ok from all sub projects and libraries. But the problem is when the above mentioned property is set to a production server, it will first undeploy the webservice from the app-server, clean the project and build. (making the webservice unavailable in the meantime) and if any dependencies fails, it results in an unbuildable project, and an unavailable webservice on the production server.
Making things worse. on an ear -project I have, even changing the server in the project properties, from the production server, to the test server, I horribly experienced an undeploy from the production server, before it switched to the test server. Just because I changed that option in the project properties.
I have not enabled "Deploy on Save" in any of my projects
So, is there any way to disable those automatically initiated undeploy catastrophes? Or, should I only use a test-server from the ide, then build war/ear packages to deploy to production servers manually only?
I'm curious how other users are handling development under a test/production environment like this?
Kind regards, HÃ¥kon |
|
| Back to top |
|
 |
Jeffrey.Rodriguez
Joined: 17 Feb 2009 Posts: 5
|
Posted: Wed Feb 18, 2009 12:04 am Post subject: |
|
|
I noticed the same thing myself today.
It's a part of the project's build-impl, undeploy-clean is a dependency of clean.
I hope this is a bug as it's highly undesirable, and occurs on local and remote domains making it too dangerous to put production servers in Netbeans' server manager. |
|
| Back to top |
|
 |
Andy Stevens Posted via mailing list.
|
Posted: Wed Feb 18, 2009 5:13 pm Post subject: auto(un)deploy problems |
|
|
2009/2/18 Jeffrey.Rodriguez <address-removed>:
| Quote: | I noticed the same thing myself today.
It's a part of the project's build-impl, undeploy-clean is a dependency of clean.
I hope this is a bug as it's highly undesirable, and occurs on local and remote domains
making it too dangerous to put production servers in Netbeans' server manager.
|
If your production servers are configured to allow this sort of access
by developers rather than only the admin login(s) you use to deploy
applications, you're just asking for trouble IMO
Given there's nothing to prevent them connecting via the web-based
admin console and undeploying the app, I hardly think it's a bug in
Netbeans if that makes it easier to do so. How is Netbeans to know
it's your production box and not a remote test or integration server
(on which it may be perfectly okay to do this)?
Lock down the server, don't hand out the admin user name & password to
developers, and it won't matter if they add them to the Servers list.
Andy
--
http://pseudoq.sourceforge.net/ Open source java sudoku applications |
|
| Back to top |
|
 |
Jeffrey.Rodriguez
Joined: 17 Feb 2009 Posts: 5
|
Posted: Wed Feb 18, 2009 8:02 pm Post subject: Re: auto(un)deploy problems |
|
|
| Andy Stevens wrote: | 2009/2/18 Jeffrey.Rodriguez <address-removed>:
| Quote: | I noticed the same thing myself today.
It's a part of the project's build-impl, undeploy-clean is a dependency of clean.
I hope this is a bug as it's highly undesirable, and occurs on local and remote domains
making it too dangerous to put production servers in Netbeans' server manager.
|
If your production servers are configured to allow this sort of access
by developers rather than only the admin login(s) you use to deploy
applications, you're just asking for trouble IMO
Given there's nothing to prevent them connecting via the web-based
admin console and undeploying the app, I hardly think it's a bug in
Netbeans if that makes it easier to do so. How is Netbeans to know
it's your production box and not a remote test or integration server
(on which it may be perfectly okay to do this)?
Lock down the server, don't hand out the admin user name & password to
developers, and it won't matter if they add them to the Servers list.
Andy
--
http://pseudoq.sourceforge.net/ Open source java sudoku applications |
Developers are the admins in smaller companies . Still, it's a non-solution. "Clean" should be clean only, not an implicit undeploy. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|