IntelliJ not updating Glassfish Deployment

妖精的绣舞 提交于 2019-12-13 08:10:52

问题


IntelliJ is acting odd with its redeployment settings.

In the "updating applications" tab it has on the bottom for debugging:

,

I have tried to use all of the update options in order to update my application (update classes, update classes resources, restart), and NONE work to update my server. I have even closed and rebooted IntelliJ and the updates still don't appear.

The update is a simple alert message that is triggered when the index.html is loaded. It works when I load the html manually, but when I run the server, it does not alert, meaning it is still using a previous iteration of my server? This is really frustrating as I can't see any of my changes and don't know how to fix my server.

I am using the latest Glassfish server and latest IntelliJ IDE. It does update my resources EVENTUALLY, but not through some defined pattern as far as I can tell.


回答1:


Below is the copy of my answer from your other post. I would suggest to close this one and to continue discussion in single thread (if still needed).

The expected sequence is as follows:

  1. make a change to a resource
  2. update the application on the server with the mentioned 'Update <> application' action: 'Update resource' choice should be enough for an exploded application, redeploy/restart may be needed for archive artifact
  3. reload (refresh) the page, that uses the resource in browser

I suspect you're missing the last (3) step. Please note, step (2) only updates the resource on the server, and to see a change in browser (on client) you should reload the corresponding resources from server by refreshing the page manually.

Hope that helps,



来源:https://stackoverflow.com/questions/44358674/intellij-not-updating-glassfish-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!