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 160069 - Application is undeployed from remote server when target server is changed on Netbeans IDE on project properties.
Summary: Application is undeployed from remote server when target server is changed on...
Status: RESOLVED DUPLICATE of bug 152594
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-11 04:51 UTC by teodoro
Modified: 2009-03-21 00:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description teodoro 2009-03-11 04:51:30 UTC
Application is undeployed from remote server when target server is changed on Netbeans IDE on project properties.

Since Netbeans 6.5 I noticed that the if a Enterprise Application project created on previous version ( ex 6.1 ) if any 
change on the project properties it automatically undeploy the ear file from a remote server.

This is totally unmanaged and causes problems if I'm preparing to deploy application to a remote production server.

I believe it's related to option "save and deploy" although in my case it is off. 

HOW I STOP IT or disable the new feature.

Is there an option on netbeans.conf that disable the auto save/deployment ?
Comment 1 Vince Kraemer 2009-03-12 18:18:00 UTC
i will take a first look at this.
Comment 2 Vince Kraemer 2009-03-12 18:27:08 UTC
are both boxes in play (IDE host, app server host) using Solaris?
Comment 3 teodoro 2009-03-12 22:37:11 UTC
Yes, both IDE and Glassfish on Solaris.

Netbeans:

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05
System: SunOS version 5.10 running on x86; ISO8859-1; en_US (nb)

Glassfish:

Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)


This project has been carried out since Netbeans 6.1. 
Comment 4 teodoro 2009-03-21 00:06:13 UTC
Its the "clean" target that is un-deploying  project ear from remote Glassfish server.
It also happens on the clean-build, I think because it runs clean also.

project property j2ee.deploy.on.save is set to false; 


Comment 5 Vince Kraemer 2009-03-21 00:16:29 UTC
OK. this sounds like it should get passed onto the ear project...
Comment 6 teodoro 2009-03-21 00:18:18 UTC
I isolated the problem removing dependence "undeploy-clean" from "clean" target

    <!--target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products."
name="clean"/-->
    <target depends="init,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>

Now it doesn't happens.

I'm wondering how it can get into a Netbeans fix.
Comment 7 Vince Kraemer 2009-03-21 00:47:31 UTC
i will turn up the heat on the issue.

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