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 258002 - Netbeans redeploys Java EE application when switching tabs in IDE
Summary: Netbeans redeploys Java EE application when switching tabs in IDE
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-15 21:31 UTC by nimnio
Modified: 2016-02-24 12:30 UTC (History)
0 users

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 nimnio 2016-02-15 21:31:52 UTC
I use NetBeans to create and deploy the "JsfJpaCrud" application that comes bundled (available in New Project > Samples > Java EE > JSF JPA CRUD). I'm deploying it to Glassfish 3.1.2.2. The application deploys successfully. 

I open two Java files in the application source code (say DiscountCodeController.java and DiscountCodeConverter.java). I switch between tabs without making any changes, and Netbeans redeploys the application. I don't think it should redeploy the application unless I make changes and save the file.

This seems to affect Java files only. When I open files like web.xml or  welcomeJSF.jsp the application is not redeployed when switching between those tabs.

I am using JDK 1.8.0_45 on Windows 7 to run Netbeans (configured in netbeans.conf and confirmed in messages.log). I have not made any changes to the project.

This morning I allowed Java to update itself to 1.8.0_73 via the taskbar notification. I don't know if this caused the issue; it may have been occurring earlier. (This is what I configured netbeans.conf to use the previous version, but the behaviour didn't change.)
Comment 1 nimnio 2016-02-15 21:51:10 UTC
I just installed Netbeans 8.1 configured to use 1.8.0_73, and the problem does not occur. I still have Netbeans 8.0.2 installed, so I can still reproduce this problem if someone is going to look into it.
Comment 2 nimnio 2016-02-18 19:00:16 UTC
The problem resurfaced on Netbeans 8.1 this morning with the same symptoms. It was working yesterday without issue.

I think the only configuration change I made was to install the "Dark Look and Feel Themes" plugin and the Netbeans "ZenburnX" theme available on GitHub. I have since uninstalled the plugin and switched themes, but the problem is still occurring. The rest of my plugins are stock.

I'm going to try to clear the Netbeans cache (or whatever I can Google) to see if that fixes it. If that doesn't work, I'll reinstall Netbeans 8.1 and make _no_ changes to it whatsoever except to import my projects, and we'll see if the problem resurfaces.

I do wonder if this is a Java 8 version issue, but as I mentioned earlier, I did try downgrading to my previous version with no effect.
Comment 3 nimnio 2016-02-18 19:29:18 UTC
I deleted "C:\Users\David.Sharpe\AppData\Local\NetBeans\Cache\8.1" and that had no affect.

Then I re-deleted "C:\Users\David.Sharpe\AppData\Local\NetBeans\Cache\8.1" and "C:\Users\David.Sharpe\AppData\Roaming\NetBeans\8.1" and the issue stopped occurring. 

I will run without plugins for a couple of days and see how things go.